From f6ce8a5bf3cc1224d2c62cbf4c3bdc422ae98e93 Mon Sep 17 00:00:00 2001 From: "Zeeshan Ali (Khattak)" Date: Fri, 20 Aug 2010 16:29:19 +0300 Subject: [PATCH] core: Don't throw error on empty search results I was doing this because of my misunderstanding of error code 720 description in in ContentDirectory v2 specification (Table 2-20). --- src/rygel/rygel-search.vala | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/rygel/rygel-search.vala b/src/rygel/rygel-search.vala index 9798a10..40b4187 100644 --- a/src/rygel/rygel-search.vala +++ b/src/rygel/rygel-search.vala @@ -70,11 +70,6 @@ internal class Rygel.Search: Rygel.MediaQueryAction { this.requested_count, out this.total_matches, this.cancellable); - if (results.size == 0) { - var message = _("No object satisfies given search criteria."); - - throw new ContentDirectoryError.CANT_PROCESS (message); - } return results; } -- 2.7.4