summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2012-11-09 16:46:15 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2012-12-10 12:05:41 +0000
commitd3173361ac6ffd0c7e91c2512502473cf05ebbc0 (patch)
treeadf42855287602ae066a41d45a11d7a84dbdfdd1
parent51f751341fd7b8858c1159832c8b1653cc01c2c9 (diff)
downloadgstreamer-plugins-base-d3173361ac6ffd0c7e91c2512502473cf05ebbc0.tar.gz
videodecoder: Reset the error count to 0 after successfully decoding a frame
-rw-r--r--gst-libs/gst/video/gstvideodecoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c
index 01392f226..9f8ed0c68 100644
--- a/gst-libs/gst/video/gstvideodecoder.c
+++ b/gst-libs/gst/video/gstvideodecoder.c
@@ -2357,7 +2357,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);