[rygel] media-export: Properly clean-up database on start-up
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Properly clean-up database on start-up
- Date: Mon, 16 Sep 2013 17:27:00 +0000 (UTC)
commit c35b6599576b7c1ddf5b557185ef4630414cd238
Author: Jens Georg <jensg openismus com>
Date: Sat Aug 17 09:56:35 2013 +0200
media-export: Properly clean-up database on start-up
https://bugzilla.gnome.org/show_bug.cgi?id=701934
.../rygel-media-export-root-container.vala | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-root-container.vala
b/src/plugins/media-export/rygel-media-export-root-container.vala
index 02e45c5..ccc52ea 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]