commit 3102cb0253bffcb81de13717b09f2bb6a85528fc
Author: Christophe Fergeau <[email protected]>
Date: Wed Oct 21 09:07:11 2009 +0200
only use start/stop sync functions on iphone-like devices
src/itdb_itunesdb.c | 16 ++++++++++------
1 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/src/itdb_itunesdb.c b/src/itdb_itunesdb.c
index a750892..c27f972 100644
--- a/src/itdb_itunesdb.c
+++ b/src/itdb_itunesdb.c
@@ -5749,9 +5749,11 @@ gboolean itdb_write (Itdb_iTunesDB *itdb, GError **error)
}
#ifdef HAVE_LIBIPHONE
- sync_status = itdb_iphone_start_sync (itdb->device, &sync_ctx);
- if (sync_status != 0) {
- fprintf(stderr, "ERROR: Could not start sync!\n");
+ if (itdb_device_is_iphone_family (itdb->device)) {
+ sync_status = itdb_iphone_start_sync (itdb->device, &sync_ctx);
+ if (sync_status != 0) {
+ fprintf(stderr, "ERROR: Could not start sync!\n");
+ }
}
#endif
@@ -5784,9 +5786,11 @@ gboolean itdb_write (Itdb_iTunesDB *itdb, GError **error)
sync ();
#ifdef HAVE_LIBIPHONE
- sync_status = itdb_iphone_stop_sync (sync_ctx);
- if (sync_status != 0) {
- fprintf(stderr, "ERROR: itdbprep_stop_sync failed!\n");
+ if (itdb_device_is_iphone_family (itdb->device)) {
+ sync_status = itdb_iphone_stop_sync (sync_ctx);
+ if (sync_status != 0) {
+ fprintf(stderr, "ERROR: itdbprep_stop_sync failed!\n");
+ }
}
#endif
------------------------------------------------------------------------------
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