Revision: 1942
          http://gtkpod.svn.sourceforge.net/gtkpod/?rev=1942&view=rev
Author:   teuf
Date:     2008-01-29 15:14:45 -0800 (Tue, 29 Jan 2008)

Log Message:
-----------
Make sure we use '/' in filenames on ipod shuffles

Modified Paths:
--------------
    libgpod/trunk/ChangeLog
    libgpod/trunk/src/itdb_itunesdb.c

Modified: libgpod/trunk/ChangeLog
===================================================================
--- libgpod/trunk/ChangeLog     2008-01-29 23:14:34 UTC (rev 1941)
+++ libgpod/trunk/ChangeLog     2008-01-29 23:14:45 UTC (rev 1942)
@@ -1,5 +1,11 @@
 2007-11-15  Christophe Fergeau  <[EMAIL PROTECTED]>
 
+       * src/itdb_itunesdb.c: don't use itdb_filename_ipod2fs to generate
+       the filename to put on the shuffle since on windows that would use
+       \ as a path separator instead of the correct /
+
+2007-11-15  Christophe Fergeau  <[EMAIL PROTECTED]>
+
        * src/itdb_private.h:
        * src/itdb_itunesdb.c: add itdb_file_set_contents to workaround a
        rename issue on sshfs (existing files on the FS can't be

Modified: libgpod/trunk/src/itdb_itunesdb.c
===================================================================
--- libgpod/trunk/src/itdb_itunesdb.c   2008-01-29 23:14:34 UTC (rev 1941)
+++ libgpod/trunk/src/itdb_itunesdb.c   2008-01-29 23:14:45 UTC (rev 1942)
@@ -5365,9 +5365,9 @@
 
        put24bint (cts, 0x200);
                
+       path = g_strdup (tr->ipod_path);
        /* shuffle uses forward slash separator, not colon */
-       path = g_strdup (tr->ipod_path);
-       itdb_filename_ipod2fs (path);
+        g_strdelimit (path, ":", '/');
        path_utf16 = g_utf8_to_utf16 (path, -1, NULL, &pathlen, NULL);
        if (pathlen > 261) pathlen = 261;
        fixup_little_utf16 (path_utf16);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to