media-export: Fix empty title on PS3
authorJens Georg <mail@jensge.org>
Sat, 24 Jul 2010 12:16:57 +0000 (15:16 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sat, 24 Jul 2010 12:20:47 +0000 (15:20 +0300)
src/plugins/media-export/rygel-media-export-root-container.vala

index 8796643..4755d81 100644 (file)
@@ -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 (