media-export: Gst.ClockTime is an uint64
authorJens Georg <mail@jensge.org>
Fri, 23 Jul 2010 19:50:35 +0000 (22:50 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Sat, 24 Jul 2010 00:26:55 +0000 (03:26 +0300)
Seems vala does a comparision like 'duration > (uint64) -1' which of
course will always fail.

src/plugins/media-export/rygel-media-export-item.vala

index e99be19..41d7d69 100644 (file)
@@ -212,7 +212,7 @@ public class Rygel.MediaExport.Item : Rygel.MediaItem {
 
         base (id, parent, title, upnp_class);
 
-        if (dlna_info.info.duration > -1) {
+        if (dlna_info.info.duration > 0) {
             this.duration = dlna_info.info.duration / Gst.SECOND;
         } else {
             this.duration = -1;