server: Don't add non-tracked LastChange events
authorJens Georg <jensg@openismus.com>
Thu, 27 Dec 2012 20:38:07 +0000 (21:38 +0100)
committerJens Georg <jensg@openismus.com>
Thu, 10 Jan 2013 15:49:00 +0000 (16:49 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=690772

src/librygel-server/rygel-content-directory.vala

index 4b2eea6..5fe6bb8 100644 (file)
@@ -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 &&