diff options
author | Florin Apostol <florin.apostol@oregan.net> | 2015-11-20 19:38:03 +0000 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2016-02-10 14:34:48 -0300 |
commit | 88e21e6089bade0e2ddc5557c4ee41dce8b3ce24 (patch) | |
tree | a9101104a86a48b9cc10e07a36e31e5d41796fc9 /gst-libs | |
parent | 21dd771b69b5c90ee213521f83a4fb4bcb23b0a1 (diff) | |
download | gstreamer-plugins-bad-88e21e6089bade0e2ddc5557c4ee41dce8b3ce24.tar.gz |
dashdemux: gst_dash_demux_get_live_seek_range returns positive values
https://bugzilla.gnome.org/show_bug.cgi?id=752374
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index 230d206d6..e3c3b51bb 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -1524,6 +1524,11 @@ gst_adaptive_demux_src_query (GstPad * pad, GstObject * parent, if (can_seek) { if (gst_adaptive_demux_is_live (demux)) { ret = gst_adaptive_demux_get_live_seek_range (demux, &start, &stop); + if (!ret) { + GST_MANIFEST_UNLOCK (demux); + GST_INFO_OBJECT (demux, "can't answer seeking query"); + return FALSE; + } } else { duration = demux_class->get_duration (demux); if (GST_CLOCK_TIME_IS_VALID (duration) && duration > 0) |