mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
matroska: Check the return value of gst_segment_do_seek()
gst_segment_do_seek() can fail.
This commit is contained in:
parent
f757fbe0f7
commit
78eaa7c6ed
1 changed files with 5 additions and 2 deletions
|
@ -2816,8 +2816,11 @@ gst_matroska_demux_handle_seek_event (GstMatroskaDemux * demux,
|
|||
seeksegment.stop = seeksegment.duration;
|
||||
}
|
||||
|
||||
gst_segment_do_seek (&seeksegment, rate, format, flags,
|
||||
cur_type, cur, stop_type, stop, &update);
|
||||
if (!gst_segment_do_seek (&seeksegment, rate, format, flags,
|
||||
cur_type, cur, stop_type, stop, &update)) {
|
||||
GST_WARNING_OBJECT (demux, "gst_segment_do_seek() failed.");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* Restore the clip timestamp offset */
|
||||
if (GST_CLOCK_TIME_IS_VALID (demux->stream_start_time)) {
|
||||
|
|
Loading…
Reference in a new issue