From ed62e78c6e8c7079d09b12fd0c1f560f8b6f111c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 20 Oct 2020 11:51:08 +0300 Subject: [PATCH] audio/videodecoder: Don't reset max-errors in reset() Otherwise setting the property on the elements has no effect at all because it's immediately reset during startup. Part-of: --- gst-libs/gst/audio/gstaudiodecoder.c | 1 - gst-libs/gst/video/gstvideodecoder.c | 1 - 2 files changed, 2 deletions(-) diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index b9ecc8d..8da5cea 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -554,7 +554,6 @@ gst_audio_decoder_reset (GstAudioDecoder * dec, gboolean full) gst_audio_info_init (&dec->priv->ctx.info); GST_OBJECT_UNLOCK (dec); - dec->priv->ctx.max_errors = GST_AUDIO_DECODER_MAX_ERRORS; dec->priv->ctx.had_output_data = FALSE; dec->priv->ctx.had_input_data = FALSE; } diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c index 0bcd16f..a4dbc74 100644 --- a/gst-libs/gst/video/gstvideodecoder.c +++ b/gst-libs/gst/video/gstvideodecoder.c @@ -2214,7 +2214,6 @@ gst_video_decoder_reset (GstVideoDecoder * decoder, gboolean full, priv->pending_events = NULL; priv->error_count = 0; - priv->max_errors = GST_VIDEO_DECODER_MAX_ERRORS; priv->had_output_data = FALSE; priv->had_input_data = FALSE; -- 2.7.4