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:
Vineeth TM 2015-12-24 15:10:16 +09:00 committed by Sebastian Dröge
parent d99af79a2c
commit 6676ed6cb0

View file

@ -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));