qtdemux: Modify data type of duration in handle_src_query function

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
This commit is contained in:
Jimmy Ohn 2016-03-21 10:11:23 +09:00 committed by Sebastian Dröge
parent 02a932d789
commit 0ef9e6d139

View 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;