[rhythmbox] mtp: wait until we've opened the device before creating album art store



commit e4523b1fad35d43f602bb1be2f640a78e616a37f
Author: Jonathan Matthew <jonathan d14n org>
Date:   Thu Jan 26 17:05:19 2012 +0100

    mtp: wait until we've opened the device before creating album art store

 plugins/mtpdevice/rb-mtp-source.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/plugins/mtpdevice/rb-mtp-source.c b/plugins/mtpdevice/rb-mtp-source.c
index f2af5a7..e115116 100644
--- a/plugins/mtpdevice/rb-mtp-source.c
+++ b/plugins/mtpdevice/rb-mtp-source.c
@@ -397,9 +397,6 @@ rb_mtp_source_constructed (GObject *object)
 	g_object_set (source, "pixbuf", pixbuf, NULL);
 	g_object_unref (pixbuf);
 
-	if (priv->album_art_supported) {
-		priv->art_store = rb_ext_db_new ("album-art");
-	}
 }
 
 static void
@@ -842,6 +839,10 @@ device_opened_idle (DeviceOpenedData *data)
 		}
 	}
 
+	if (priv->album_art_supported) {
+		priv->art_store = rb_ext_db_new ("album-art");
+	}
+
 	target = gst_encoding_target_new ("mtpdevice", "device", "", profiles);
 	g_object_set (data->source, "encoding-target", target, NULL);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]