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:
Jan Schmidt 2020-04-02 03:27:26 +11:00 committed by GStreamer Merge Bot
parent ec9a1e8ef4
commit ea945eb9c6

View file

@ -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 "-%"