tracker: Container search invalid in SearchContainer
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Thu, 23 Sep 2010 15:16:12 +0000 (18:16 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Fri, 24 Sep 2010 17:59:57 +0000 (20:59 +0300)
src/plugins/tracker/rygel-tracker-search-container.vala

index 537af49..92f8d28 100644 (file)
@@ -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") {