From: Jens Georg Date: Fri, 23 Jul 2010 19:50:35 +0000 (+0300) Subject: media-export: Gst.ClockTime is an uint64 X-Git-Tag: RYGEL_0_7_3~47 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=929090961302cce4165cd329c1ce90bebf79c593;p=profile%2Fivi%2Frygel.git media-export: Gst.ClockTime is an uint64 Seems vala does a comparision like 'duration > (uint64) -1' which of course will always fail. --- diff --git a/src/plugins/media-export/rygel-media-export-item.vala b/src/plugins/media-export/rygel-media-export-item.vala index e99be19..41d7d69 100644 --- a/src/plugins/media-export/rygel-media-export-item.vala +++ b/src/plugins/media-export/rygel-media-export-item.vala @@ -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;