[rygel] media-export: Fix empty title on PS3



commit 06322a1f48718413e4ddea723a8c5e1805af2269
Author: Jens Georg <mail jensge org>
Date:   Sat Jul 24 15:16:57 2010 +0300

    media-export: Fix empty title on PS3

 .../rygel-media-export-root-container.vala         |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-root-container.vala b/src/plugins/media-export/rygel-media-export-root-container.vala
index 8796643..4755d81 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -177,14 +177,16 @@ public class Rygel.MediaExport.RootContainer : Rygel.MediaExport.DBContainer {
     public override async MediaObject? find_object (string       id,
                                                     Cancellable? cancellable)
                                                     throws Error {
-        if (id.has_prefix (QueryContainer.PREFIX)) {
+        var object = yield base.find_object (id, cancellable);
+
+        if (object == null && id.has_prefix (QueryContainer.PREFIX)) {
             var container = new QueryContainer (this.media_db, id);
             container.parent = this;
 
             return container;
-        } else {
-            return yield base.find_object (id, cancellable);
         }
+
+        return object;
     }
 
     public override async Gee.List<MediaObject>? search (



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