mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
basesrc: Check the return value of gst_segment_do_seek()
Don't assume that a given seek succeeds - check the return result.
This commit is contained in:
parent
dcb2be3282
commit
1b92672e3b
1 changed files with 5 additions and 2 deletions
|
@ -1426,8 +1426,11 @@ gst_base_src_default_prepare_seek_segment (GstBaseSrc * src, GstEvent * event,
|
|||
}
|
||||
|
||||
/* And finally, configure our output segment in the desired format */
|
||||
gst_segment_do_seek (segment, rate, dest_format, flags, start_type, start,
|
||||
stop_type, stop, &update);
|
||||
if (res) {
|
||||
res =
|
||||
gst_segment_do_seek (segment, rate, dest_format, flags, start_type,
|
||||
start, stop_type, stop, &update);
|
||||
}
|
||||
|
||||
if (!res)
|
||||
goto no_format;
|
||||
|
|
Loading…
Reference in a new issue