videodecoder: Reset the error count to 0 after successfully decoding a frame

This commit is contained in:
Sebastian Dröge 2012-11-09 16:46:15 +01:00
parent e2da5fba9d
commit d697dd6d39

View file

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