mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-03 13:16:04 +00:00
videodecoder: Reset the error count to 0 after successfully decoding a frame
This commit is contained in:
parent
e2da5fba9d
commit
d697dd6d39
|
@ -2490,7 +2490,7 @@ gst_video_decoder_clip_and_push_buf (GstVideoDecoder * decoder, GstBuffer * buf)
|
|||
/* we got data, so note things are looking up again, reduce
|
||||
* the error count, if there is one */
|
||||
if (G_UNLIKELY (priv->error_count))
|
||||
priv->error_count--;
|
||||
priv->error_count = 0;
|
||||
|
||||
ret = gst_pad_push (decoder->srcpad, buf);
|
||||
|
||||
|
|
Loading…
Reference in a new issue