[rygel] server: Don't add non-tracked LastChange events



commit 8caa11e2a3f959713225f6872a7b354fcd101e46
Author: Jens Georg <jensg openismus com>
Date:   Thu Dec 27 21:38:07 2012 +0100

    server: Don't add non-tracked LastChange events
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690772

 src/librygel-server/rygel-content-directory.vala |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/librygel-server/rygel-content-directory.vala b/src/librygel-server/rygel-content-directory.vala
index 4b2eea6..5fe6bb8 100644
--- a/src/librygel-server/rygel-content-directory.vala
+++ b/src/librygel-server/rygel-content-directory.vala
@@ -429,7 +429,9 @@ internal class Rygel.ContentDirectory: Service {
                                        ObjectEventType event_type,
                                        bool sub_tree_update) {
         this.system_update_id++;
-        this.add_last_change_entry (object, event_type, sub_tree_update);
+        if (updated_container is TrackableContainer) {
+            this.add_last_change_entry (object, event_type, sub_tree_update);
+        }
         var plugin = this.root_device.resource_factory as MediaServerPlugin;
 
         if (this.system_update_id == 0 &&



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