From 5f9f5c40bff3d8642151fe29a6762b54b96c6d44 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 29 Jan 2008 23:14:45 +0000 Subject: Make sure we use '/' in filenames on ipod shuffles git-svn-id: https://gtkpod.svn.sf.net/svnroot/gtkpod/libgpod/trunk@1942 f01d2545-417e-4e96-918e-98f8d0dbbcb6 --- ChangeLog | 6 ++++++ src/itdb_itunesdb.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index ae1365a..f19fc4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-15 Christophe Fergeau + + * 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 * src/itdb_private.h: diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c index cb1b79e..72ddfc0 100644 --- a/src/itdb_itunesdb.c +++ b/src/itdb_itunesdb.c @@ -5365,9 +5365,9 @@ gboolean itdb_shuffle_write_file (Itdb_iTunesDB *itdb, put24bint (cts, 0x200); - /* shuffle uses forward slash separator, not colon */ path = g_strdup (tr->ipod_path); - itdb_filename_ipod2fs (path); + /* shuffle uses forward slash separator, not colon */ + g_strdelimit (path, ":", '/'); path_utf16 = g_utf8_to_utf16 (path, -1, NULL, &pathlen, NULL); if (pathlen > 261) pathlen = 261; fixup_little_utf16 (path_utf16); -- cgit