mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-03 01:02:19 +00:00
videodecoder: Reset the error count to 0 after successfully decoding a frame
This commit is contained in:
parent
e2da5fba9d
commit
d697dd6d39
1 changed files with 1 additions and 1 deletions
|
@ -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