[rygel] media-export: Add root container to database
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] media-export: Add root container to database
- Date: Wed, 9 Sep 2009 20:39:43 +0000 (UTC)
commit fba2ac65495ad9a9f366ddd5f830580978b075ea
Author: Jens Georg <mail jensge org>
Date: Sun Jul 5 13:33:21 2009 +0200
media-export: Add root container to database
This is necessary to allow MediaItems directly below the root container
.../rygel-media-export-root-container.vala | 8 +++++---
1 files changed, 5 insertions(+), 3 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 d723edf..0644e80 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -72,16 +72,18 @@ public class Rygel.MediaExportRootContainer : Rygel.MediaDBContainer {
this.monitor = new MediaExportRecursiveFileMonitor (null);
this.monitor.changed.connect (this.on_file_changed);
- var uris = get_uris ();
+ try {
+ media_db.save_object (this);
+ } catch (Error error) {
+ }
var ids = media_db.get_child_ids ("0");
-
+ var uris = get_uris ();
foreach (var uri in uris) {
var file = File.new_for_commandline_arg (uri);
if (file.query_exists (null)) {
var id = Checksum.compute_for_string (ChecksumType.MD5,
file.get_uri ());
- debug ("Requested id %s", id);
ids.remove (id);
this.harvest (file);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]