[rygel] media-export: Fix updating of changed files



commit df9fa4fdec3dc65206584aacb26348717e27ba9e
Author: Jens Georg <mail jensge org>
Date:   Sun Sep 27 13:51:09 2009 +0200

    media-export: Fix updating of changed files

 .../rygel-media-export-root-container.vala         |    3 +--
 1 files changed, 1 insertions(+), 2 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 7bc38c0..f393717 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -222,6 +222,7 @@ public class Rygel.MediaExportRootContainer : Rygel.MediaDBContainer {
                                   FileMonitorEvent event) {
         switch (event) {
             case FileMonitorEvent.CREATED:
+            case FileMonitorEvent.CHANGES_DONE_HINT:
                 var parent = file.get_parent ();
                 var id = Checksum.compute_for_string (ChecksumType.MD5,
                                                       parent.get_uri ());
@@ -232,8 +233,6 @@ public class Rygel.MediaExportRootContainer : Rygel.MediaDBContainer {
                     assert_not_reached ();
                 }
                 break;
-            case FileMonitorEvent.CHANGES_DONE_HINT:
-                break;
             case FileMonitorEvent.DELETED:
                 var id = Checksum.compute_for_string (ChecksumType.MD5,
                                                       file.get_uri ());



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