core: Do not serialize empty date
authorJens Georg <mail@jensge.org>
Tue, 11 Oct 2011 17:44:49 +0000 (19:44 +0200)
committerJens Georg <mail@jensge.org>
Wed, 12 Oct 2011 08:24:47 +0000 (10:24 +0200)
src/rygel/rygel-media-item.vala

index dd3ddcf..44eb68f 100644 (file)
@@ -195,7 +195,10 @@ public abstract class Rygel.MediaItem : MediaObject {
 
         didl_item.title = this.title;
         didl_item.upnp_class = this.upnp_class;
-        didl_item.date = this.date;
+
+        if (this.date != null) {
+            didl_item.date = this.date;
+        }
 
         /* We list proxy/transcoding resources first instead of original URIs
          * because some crappy MediaRenderer/ControlPoint implemenation out