[rygel] media-export: Proper default values for item metdata



commit 7f58bcc18f06bb8983dd1df1ebc23d3a00879574
Author: Jens Georg <mail jensge org>
Date:   Tue Sep 28 20:50:41 2010 +0200

    media-export: Proper default values for item metdata
    
    This fixes the misterious "0" Album and Artist on XBox

 .../rygel-media-export-media-cache.vala            |   24 ++++++++++----------
 1 files changed, 12 insertions(+), 12 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 1093bca..d8f88ff 100644
--- a/src/plugins/media-export/rygel-media-export-media-cache.vala
+++ b/src/plugins/media-export/rygel-media-export-media-cache.vala
@@ -421,22 +421,22 @@ public class Rygel.MediaExport.MediaCache : Object {
         // Fill common properties
         GLib.Value[] values = { item.size,
                                 item.mime_type,
-                                0,
-                                0,
+                                -1,
+                                -1,
                                 item.upnp_class,
-                                0,
-                                0,
+                                Database.null (),
+                                Database.null (),
                                 item.date,
-                                0,
-                                0,
-                                0,
-                                0,
-                                0,
-                                0,
-                                0,
+                                -1,
+                                -1,
+                                -1,
+                                -1,
+                                -1,
+                                -1,
+                                -1,
                                 item.id,
                                 item.dlna_profile,
-                                0};
+                                Database.null ()};
 
         if (item is AudioItem) {
             var audio_item = item as AudioItem;



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