qtdemux: Modify data type of duration in handle_src_query function
authorJimmy Ohn <yongjin.ohn@lge.com>
Mon, 21 Mar 2016 01:11:23 +0000 (10:11 +0900)
committerSebastian Dröge <sebastian@centricular.com>
Thu, 24 Mar 2016 12:34:55 +0000 (14:34 +0200)
Data type of duration need to modify from guint64 to GstClockTime
for consistency in handle_src_query function.

https://bugzilla.gnome.org/show_bug.cgi?id=763965

gst/isomp4/qtdemux.c

index bf9869f..0ac3b10 100644 (file)
@@ -830,7 +830,7 @@ gst_qtdemux_handle_src_query (GstPad * pad, GstObject * parent,
         /* First try to query upstream */
         res = gst_pad_query_default (pad, parent, query);
         if (!res) {
-          guint64 duration;
+          GstClockTime duration;
           if (gst_qtdemux_get_duration (qtdemux, &duration) && duration > 0) {
             gst_query_set_duration (query, GST_FORMAT_TIME, duration);
             res = TRUE;