[rygel] tracker: Container search invalid in SearchContainer



commit 1569fc15b53957fec9a530f31d625277de842875
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Sep 23 18:16:12 2010 +0300

    tracker: Container search invalid in SearchContainer

 .../tracker/rygel-tracker-search-container.vala    |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-search-container.vala b/src/plugins/tracker/rygel-tracker-search-container.vala
index 537af49..92f8d28 100644
--- a/src/plugins/tracker/rygel-tracker-search-container.vala
+++ b/src/plugins/tracker/rygel-tracker-search-container.vala
@@ -199,6 +199,11 @@ public class Rygel.Tracker.SearchContainer : Rygel.MediaContainer {
         }
 
         var rel_expression = expression as RelationalExpression;
+        if (rel_expression.operand1 == "upnp:class" &&
+            rel_expression.operand2.has_prefix (MediaContainer.UPNP_CLASS)) {
+            return null;
+        }
+
         var query = new SelectionQuery.clone (this.query);
 
         if (rel_expression.operand1 == "@parentID") {



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