mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-22 14:06:23 +00:00
mpegtsbase: Add condition to check for non working negative rate
tsdemux is not able to handle negative playback rates. But in mpegtsbase, the same check is not being done. added a check to not handle negative rate while seeking unless the same is handled upstream. https://bugzilla.gnome.org/show_bug.cgi?id=758516
This commit is contained in:
parent
d99af79a2c
commit
6676ed6cb0
1 changed files with 5 additions and 0 deletions
|
@ -1438,6 +1438,11 @@ mpegts_base_handle_seek_event (MpegTSBase * base, GstPad * pad,
|
|||
return ret == GST_FLOW_OK;
|
||||
}
|
||||
|
||||
if (rate <= 0.0) {
|
||||
GST_WARNING ("Negative rate not supported");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
GST_DEBUG ("seek event, rate: %f start: %" GST_TIME_FORMAT
|
||||
" stop: %" GST_TIME_FORMAT, rate, GST_TIME_ARGS (start),
|
||||
GST_TIME_ARGS (stop));
|
||||
|
|
Loading…
Reference in a new issue