commit 48eb488bef9f1e06233459c013ea12c91edddc5c
Author: Christophe Fergeau <[email protected]>
Date:   Sat Oct 24 11:49:00 2009 +0200

    test-cp: add track to db before trying to copy it

 tests/test-cp.cc |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/tests/test-cp.cc b/tests/test-cp.cc
index 43d015d..9ff4fed 100644
--- a/tests/test-cp.cc
+++ b/tests/test-cp.cc
@@ -92,14 +92,13 @@ copy_file (Itdb_iTunesDB *db, const char *filename, GError 
**error)
        Itdb_Track *track;
 
        track = track_from_file (filename);
+       itdb_track_add (db, track, -1);
+       itdb_playlist_add_track (itdb_playlist_mpl(db), track, -1);
        itdb_cp_track_to_ipod (track, filename, error);
        if (track->ipod_path == NULL) {
                itdb_track_free (track);
                return;
        }
-
-       itdb_track_add (db, track, -1);
-       itdb_playlist_add_track (itdb_playlist_mpl(db), track, -1);
 }
 
 static Itdb_iTunesDB *

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2

Reply via email to