[rygel] media-export: Gst.ClockTime is an uint64



commit 929090961302cce4165cd329c1ce90bebf79c593
Author: Jens Georg <mail jensge org>
Date:   Fri Jul 23 22:50:35 2010 +0300

    media-export: Gst.ClockTime is an uint64
    
    Seems vala does a comparision like 'duration > (uint64) -1' which of
    course will always fail.

 .../media-export/rygel-media-export-item.vala      |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
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;



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