[rygel] core: Don't throw error on empty search results



commit f6ce8a5bf3cc1224d2c62cbf4c3bdc422ae98e93
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Aug 20 16:29:19 2010 +0300

    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 files changed, 0 insertions(+), 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;
     }



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