videodecoder: Reset the error count to 0 after successfully decoding a frame
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 9 Nov 2012 15:46:15 +0000 (16:46 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 9 Nov 2012 15:47:37 +0000 (16:47 +0100)
gst-libs/gst/video/gstvideodecoder.c

index 2a7615c..2aa9875 100644 (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);