mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
rmdemux: Don't ignore the return value of gst_segment_do_seek()
If gst_segment_do_seek() fails, fail the seek. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/merge_requests/45>
This commit is contained in:
parent
ec9a1e8ef4
commit
ea945eb9c6
1 changed files with 5 additions and 2 deletions
|
@ -527,8 +527,11 @@ gst_rmdemux_perform_seek (GstRMDemux * rmdemux, GstEvent * event)
|
|||
GST_LOG_OBJECT (rmdemux, "Took streamlock");
|
||||
|
||||
if (event) {
|
||||
gst_segment_do_seek (&rmdemux->segment, rate, format, flags,
|
||||
cur_type, cur, stop_type, stop, &update);
|
||||
if (!gst_segment_do_seek (&rmdemux->segment, rate, format, flags,
|
||||
cur_type, cur, stop_type, stop, &update)) {
|
||||
ret = FALSE;
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
GST_DEBUG_OBJECT (rmdemux, "segment positions set to %" GST_TIME_FORMAT "-%"
|
||||
|
|
Loading…
Reference in a new issue