Commit e4523b1f authored by Jonathan Matthew's avatar Jonathan Matthew

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

parent a6445ade
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment