[rygel] media-export: Fix broken get_object



commit 86da9b4dc625d3489b8f9834f68f6366770c2706
Author: Jens Georg <mail jensge org>
Date:   Sun Jun 6 21:38:21 2010 +0200

    media-export: Fix broken get_object

 .../rygel-media-export-media-cache.vala            |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-media-cache.vala b/src/plugins/media-export/rygel-media-export-media-cache.vala
index 0a5967f..4ebc7f2 100644
--- a/src/plugins/media-export/rygel-media-export-media-cache.vala
+++ b/src/plugins/media-export/rygel-media-export-media-cache.vala
@@ -129,7 +129,7 @@ public class Rygel.MediaExport.MediaCache : Object {
         "(SELECT descendant FROM closure WHERE ancestor = ?)";
 
     private const string GET_OBJECT_WITH_PATH =
-    "SELECT o.type_fk, o.title, m.size, m.mime_type, m.width, m.height, " +
+    "SELECT DISTINCT o.type_fk, o.title, m.size, m.mime_type, m.width, m.height, " +
             "m.class, m.author, m.album, m.date, m.bitrate, m.sample_freq, " +
             "m.bits_per_sample, m.channels, m.track, m.color_depth, " +
             "m.duration, o.parent, o.upnp_id, o.uri " +



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