media-export: Set proper id when creating container
authorJens Georg <jensg@openismus.com>
Wed, 10 Apr 2013 13:45:18 +0000 (15:45 +0200)
committerJens Georg <jensg@openismus.com>
Wed, 10 Apr 2013 13:47:56 +0000 (15:47 +0200)
src/plugins/media-export/rygel-media-export-writable-db-container.vala

index 77e62af..2677e79 100644 (file)
@@ -76,6 +76,7 @@ internal class Rygel.MediaExport.WritableDbContainer : TrackableDbContainer,
         switch (container.upnp_class) {
         case MediaContainer.STORAGE_FOLDER:
             var file = File.new_for_uri (container.uris[0]);
+            container.id = MediaCache.get_id (file);
             if (file.is_native ()) {
                 file.make_directory_with_parents (cancellable);
             }