[rygel] media-export: Fix regression introduced by f12726e



commit f1f60a0c5b6b52f8e9b87d211f5d7ce75c4b8b9c
Author: Jens Georg <mail jensge org>
Date:   Mon Jul 12 17:37:39 2010 +0300

    media-export: Fix regression introduced by f12726e
    
    Until now this didn't matter, as search was handling the request
    correctly. With the search cleanup patch get_object is used and
    the items didn't have a uri anymore.

 .../rygel-media-export-media-cache.vala            |    4 ++--
 1 files changed, 2 insertions(+), 2 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 bd4e9c7..84a3c15 100644
--- a/src/plugins/media-export/rygel-media-export-media-cache.vala
+++ b/src/plugins/media-export/rygel-media-export-media-cache.vala
@@ -132,7 +132,7 @@ public class Rygel.MediaExport.MediaCache : Object {
     "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 " +
+            "m.duration, o.parent, o.upnp_id, o.timestamp, o.uri " +
     "FROM Object o " +
         "JOIN Closure c ON (o.upnp_id = c.ancestor) " +
         "LEFT OUTER JOIN meta_data m ON (o.upnp_id = m.object_fk) " +
@@ -674,7 +674,7 @@ public class Rygel.MediaExport.MediaCache : Object {
         }
 
         if (object != null) {
-            object.modified = statement.column_int64 (18);
+            object.modified = statement.column_int64 (19);
         }
 
         return object;



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