[rygel] media-export: react on deletion of files



commit 5180e651888a87b649c0076c60731de741d5bf8d
Author: Jens Georg <mail jensge org>
Date:   Sun Jun 28 02:09:09 2009 +0200

    media-export: react on deletion of files

 .../rygel-media-export-root-container.vala         |    3 +++
 1 files changed, 3 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 a5ca567..2c1bd37 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -115,6 +115,9 @@ public class Rygel.MediaExportRootContainer : Rygel.MediaDBContainer {
             case FileMonitorEvent.CHANGES_DONE_HINT:
                 break;
             case FileMonitorEvent.DELETED:
+                var id = Checksum.compute_for_string (ChecksumType.MD5,
+                                                      file.get_uri ());
+                this.media_db.delete_by_id (id);
                 break;
             default:
                 break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]