media-export: Properly clean-up database on start-up
authorJens Georg <jensg@openismus.com>
Sat, 17 Aug 2013 07:56:35 +0000 (09:56 +0200)
committerJens Georg <jensg@openismus.com>
Mon, 16 Sep 2013 17:24:36 +0000 (19:24 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=701934

src/plugins/media-export/rygel-media-export-root-container.vala

index 02e45c5..ccc52ea 100644 (file)
@@ -381,6 +381,10 @@ public class Rygel.MediaExport.RootContainer : TrackableDbContainer {
         this.initialized = true;
         this.cancellable = new Cancellable ();
 
+        // Remove old virtual folders in case virtual folders were disabled
+        // during restart or we don't have a particular class of items anymore
+        this.media_db.drop_virtual_folders ();
+
         // Tell the cache about this root container.
         try {
             this.media_db.save_container (this);