[rygel] tracker,external: Don't errors out object not found



commit 43565017d4d611ce02d820fed632f4df9ed01f37
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Sat Sep 19 23:33:13 2009 +0300

    tracker,external: Don't errors out object not found

 src/plugins/external/rygel-external-item.vala      |    4 +---
 .../tracker/rygel-tracker-search-container.vala    |    3 +--
 2 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/external/rygel-external-item.vala b/src/plugins/external/rygel-external-item.vala
index 9f078e3..f3faf7d 100644
--- a/src/plugins/external/rygel-external-item.vala
+++ b/src/plugins/external/rygel-external-item.vala
@@ -41,9 +41,7 @@ public class Rygel.ExternalItem : Rygel.MediaItem {
     public ExternalItem.for_id (string            id,
                                 ExternalContainer parent) throws GLib.Error {
         var object_path = id.str ("/");
-        if (object_path == null) {
-            throw new ContentDirectoryError.NO_SUCH_OBJECT ("No such object");
-        }
+        assert (object_path != null);
 
         this (id, object_path, parent);
     }
diff --git a/src/plugins/tracker/rygel-tracker-search-container.vala b/src/plugins/tracker/rygel-tracker-search-container.vala
index 10e0438..d2a9ac4 100644
--- a/src/plugins/tracker/rygel-tracker-search-container.vala
+++ b/src/plugins/tracker/rygel-tracker-search-container.vala
@@ -174,8 +174,7 @@ public class Rygel.TrackerSearchContainer : Rygel.MediaContainer {
                                                 out parent_id,
                                                 out res.item_service);
             if (res.item_path == null) {
-                throw new ContentDirectoryError.NO_SUCH_OBJECT (
-                                                    "No such object");
+                res.complete_in_idle ();
             }
 
             string[] keys = TrackerItem.get_metadata_keys ();



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