rhythmbox r5953 - in trunk: . plugins/ipod
- From: jmatthew svn gnome org
- To: svn-commits-list gnome org
- Subject: rhythmbox r5953 - in trunk: . plugins/ipod
- Date: Sun, 28 Sep 2008 04:09:14 +0000 (UTC)
Author: jmatthew
Date: Sun Sep 28 04:09:14 2008
New Revision: 5953
URL: http://svn.gnome.org/viewvc/rhythmbox?rev=5953&view=rev
Log:
2008-09-28 Jonathan Matthew <jonathan d14n org>
* plugins/ipod/rb-ipod-source.c: (impl_build_dest_uri):
Don't crash when dealing with a brand new ipod. Should fix #552617.
Modified:
trunk/ChangeLog
trunk/plugins/ipod/rb-ipod-source.c
Modified: trunk/plugins/ipod/rb-ipod-source.c
==============================================================================
--- trunk/plugins/ipod/rb-ipod-source.c (original)
+++ trunk/plugins/ipod/rb-ipod-source.c Sun Sep 28 04:09:14 2008
@@ -1176,6 +1176,10 @@
char *dest;
const char *mount_path;
+ if (priv->ipod_db == NULL) {
+ return NULL;
+ }
+
uri = rhythmdb_entry_get_string (entry, RHYTHMDB_PROP_LOCATION);
mount_path = rb_ipod_db_get_mount_path (priv->ipod_db);
dest = ipod_get_filename_for_uri (mount_path, uri,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]