mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
videodecoder: Avoid recursive drain/flush calls
_chain_forward() can also be called with reverse playback. Blindly calling drain_out() on DISCONT buffers would end up in a recursive call.
This commit is contained in:
parent
183e94b2d3
commit
5bef865f9f
1 changed files with 1 additions and 1 deletions
|
@ -2179,7 +2179,7 @@ gst_video_decoder_chain_forward (GstVideoDecoder * decoder,
|
|||
|
||||
g_return_val_if_fail (priv->packetized || klass->parse, GST_FLOW_ERROR);
|
||||
|
||||
if (GST_BUFFER_IS_DISCONT (buf))
|
||||
if (decoder->input_segment.rate > 0.0 && GST_BUFFER_IS_DISCONT (buf))
|
||||
ret = gst_video_decoder_drain_out (decoder, FALSE);
|
||||
|
||||
if (priv->current_frame == NULL)
|
||||
|
|
Loading…
Reference in a new issue