adaptivedemux: all subclasses must implement get_duration

CID #1256557
This commit is contained in:
Thiago Santos 2014-12-03 09:40:34 -03:00
parent e11c311c31
commit 9afed503ed

View file

@ -990,7 +990,7 @@ gst_adaptive_demux_src_query (GstPad * pad, GstObject * parent,
gst_query_parse_seeking (query, &fmt, NULL, NULL, NULL); gst_query_parse_seeking (query, &fmt, NULL, NULL, NULL);
GST_INFO_OBJECT (demux, "Received GST_QUERY_SEEKING with format %d", fmt); GST_INFO_OBJECT (demux, "Received GST_QUERY_SEEKING with format %d", fmt);
if (fmt == GST_FORMAT_TIME) { if (fmt == GST_FORMAT_TIME) {
gboolean can_seek = demux_class->get_duration && demux_class->seek gboolean can_seek = demux_class->seek
&& !gst_adaptive_demux_is_live (demux); && !gst_adaptive_demux_is_live (demux);
GstClockTime duration; GstClockTime duration;
duration = demux_class->get_duration (demux); duration = demux_class->get_duration (demux);