diff options
author | Vineeth TM <vineeth.tm@samsung.com> | 2015-12-24 15:10:16 +0900 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-02-17 10:51:07 +0200 |
commit | 6676ed6cb0d84173a2051aeb4f19209fb904e444 (patch) | |
tree | 48d8953e4ed9d6087ef1863d0bbd4728a237cf2a /gst/mpegtsdemux | |
parent | d99af79a2ca8199a4f4b5404124efc5c405444f4 (diff) | |
download | gstreamer-plugins-bad-6676ed6cb0d84173a2051aeb4f19209fb904e444.tar.gz |
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
Diffstat (limited to 'gst/mpegtsdemux')
-rw-r--r-- | gst/mpegtsdemux/mpegtsbase.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/mpegtsdemux/mpegtsbase.c b/gst/mpegtsdemux/mpegtsbase.c index 3dcde601b..126566905 100644 --- a/gst/mpegtsdemux/mpegtsbase.c +++ b/gst/mpegtsdemux/mpegtsbase.c @@ -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)); |