audiodecoder: Reset error count to 0 after successfully decoding a frame

This commit is contained in:
Sebastian Dröge 2012-11-09 16:48:54 +01:00
parent d697dd6d39
commit d209727644

View file

@ -1106,7 +1106,7 @@ gst_audio_decoder_finish_frame (GstAudioDecoder * dec, GstBuffer * buf,
/* we got data, so note things are looking up */
if (G_UNLIKELY (dec->priv->error_count))
dec->priv->error_count--;
dec->priv->error_count = 0;
ret = gst_audio_decoder_output (dec, buf);