adaptivedemux: Don't ignore gst_segment_do_seek() return result
gst_segment_do_seek() can fail, so don't ignore the return result
This commit is contained in:
parent
b9ebd885ff
commit
1c79b39896
@ -1757,9 +1757,10 @@ gst_adaptive_demux_handle_seek_event (GstAdaptiveDemux * demux, GstPad * pad,
|
|||||||
}
|
}
|
||||||
stream = NULL;
|
stream = NULL;
|
||||||
|
|
||||||
gst_segment_do_seek (&demux->segment, rate, format, flags, start_type,
|
ret = gst_segment_do_seek (&demux->segment, rate, format, flags, start_type,
|
||||||
start, stop_type, stop, &update);
|
start, stop_type, stop, &update);
|
||||||
|
|
||||||
|
if (ret) {
|
||||||
/* FIXME - this seems unatural, do_seek() is updating base when we
|
/* FIXME - this seems unatural, do_seek() is updating base when we
|
||||||
* only want the start/stop position to change, maybe do_seek() needs
|
* only want the start/stop position to change, maybe do_seek() needs
|
||||||
* some fixing? */
|
* some fixing? */
|
||||||
@ -1772,6 +1773,7 @@ gst_adaptive_demux_handle_seek_event (GstAdaptiveDemux * demux, GstPad * pad,
|
|||||||
GST_DEBUG_OBJECT (demux, "Calling subclass seek: %" GST_PTR_FORMAT, event);
|
GST_DEBUG_OBJECT (demux, "Calling subclass seek: %" GST_PTR_FORMAT, event);
|
||||||
|
|
||||||
ret = demux_class->seek (demux, event);
|
ret = demux_class->seek (demux, event);
|
||||||
|
}
|
||||||
|
|
||||||
if (!ret) {
|
if (!ret) {
|
||||||
/* Is there anything else we can do if it fails? */
|
/* Is there anything else we can do if it fails? */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user