diff options
author | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2006-03-17 15:38:08 +0000 |
---|---|---|
committer | Jorg Schuler <jcsjcs@users.sourceforge.net> | 2006-03-17 15:38:08 +0000 |
commit | 7b5fe5b7555ec3b9758fc3d2e2fcedcd7b6f8a6f (patch) | |
tree | a90b02fd8903d91687f3a18a97fa16c72da554a7 /src | |
parent | 27b50601e307b9dcd5c699faf8183eaf1bf5a295 (diff) | |
download | libgpod-7b5fe5b7555ec3b9758fc3d2e2fcedcd7b6f8a6f.tar.gz libgpod-7b5fe5b7555ec3b9758fc3d2e2fcedcd7b6f8a6f.tar.xz libgpod-7b5fe5b7555ec3b9758fc3d2e2fcedcd7b6f8a6f.zip |
* itdb_itunesdb.c (mk_mhod): fixed bug when writing podcast urls.
git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1222 f01d2545-417e-4e96-918e-98f8d0dbbcb6
Diffstat (limited to 'src')
-rw-r--r-- | src/itdb_itunesdb.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index 7723f62..3bcb584 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -1,4 +1,4 @@ -/* Time-stamp: <2006-03-17 23:09:15 jcs> +/* Time-stamp: <2006-03-18 00:35:07 jcs> | | Copyright (C) 2002-2005 Jorg Schuler <jcsjcs at users sourceforge net> | Part of the gtkpod project. @@ -2783,8 +2783,13 @@ static void put_header (WContents *cts, gchar *header) gchar rdata[4]; gint i, offset, sign; + g_return_if_fail (cts); g_return_if_fail (header); + if (strlen (header) != 4) + { + printf ("wrong header: '%s'\n", header); + } g_return_if_fail (strlen (header) == 4); /* reverse data for write if necessary */ @@ -3333,9 +3338,9 @@ static void mk_mhod (WContents *cts, MHODData *mhod) put_header (cts, "mhod"); /* header */ put32lint (cts, 24); /* size of header */ put32lint (cts, 24+len); /* size of header + data */ - put32lint (cts, mhod->type); /* type of the mhod */ + put32lint (cts, mhod->type);/* type of the mhod */ put32_n0 (cts, 2); /* unknown */ - put_header (cts, mhod->data.string); /* the string */ + put_string (cts, mhod->data.string);/* the string */ } break; case MHOD_ID_PLAYLIST: |