From d697dd6d39e55acde06b6bf8a8e642f51bdeb821 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 9 Nov 2012 16:46:15 +0100 Subject: [PATCH] videodecoder: Reset the error count to 0 after successfully decoding a frame --- gst-libs/gst/video/gstvideodecoder.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c index 2a7615c..2aa9875 100644 --- a/gst-libs/gst/video/gstvideodecoder.c +++ b/gst-libs/gst/video/gstvideodecoder.c @@ -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); -- 2.7.4