media-export: Duration is a guint64
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Fri, 11 Jun 2010 08:57:25 +0000 (14:27 +0530)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Wed, 21 Jul 2010 19:23:29 +0000 (22:23 +0300)
create_from_taglist() was using int64 for duration which causes
subsequent uses as a guint64 (which is what Gst.ClockTime is) to fail.

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

index 017cdd3..8c341ec 100644 (file)
@@ -52,9 +52,9 @@ public class Rygel.MediaExport.MediaExportItem : Rygel.MediaItem {
                         // if it has width and height and a duration, assume
                         // it is a video (to capture the MPEG TS without audio
                         // case)
-                        int64 duration;
-                        if (tag_list.get_int64 (TAG_DURATION,
-                                                out duration)) {
+                        uint64 duration;
+                        if (tag_list.get_uint64 (TAG_DURATION,
+                                                 out duration)) {
                             class_guessed = Rygel.MediaItem.VIDEO_CLASS;
                         } else {
                             string content_type;