[rygel] tracker: Don't search the item if it's not yours



commit 7b5c649302c9047bdf5981285efeb9f8dbfe5bbf
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Nov 12 15:44:40 2009 +0200

    tracker: Don't search the item if it's not yours
    
    SearchContainer shouldn't bother to search the item if it's not
    it's own. This optimizes item search quite a bit as we save a lot
    of dbus method calls.

 .../tracker/rygel-tracker-search-container.vala    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-search-container.vala b/src/plugins/tracker/rygel-tracker-search-container.vala
index e5a2831..be7cff3 100644
--- a/src/plugins/tracker/rygel-tracker-search-container.vala
+++ b/src/plugins/tracker/rygel-tracker-search-container.vala
@@ -213,7 +213,7 @@ public class Rygel.TrackerSearchContainer : Rygel.MediaContainer {
                 var path = this.get_item_info (rel_expression.operand2,
                                                out parent_id,
                                                out service);
-                if (path != null) {
+                if (path != null && parent_id != null && parent_id == this.id) {
                     var dir = Path.get_dirname (path);
                     var basename = Path.get_basename (path);
 



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