audio/videodecoder: Don't reset max-errors in reset()
authorSebastian Dröge <sebastian@centricular.com>
Tue, 20 Oct 2020 08:51:08 +0000 (11:51 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 20 Oct 2020 08:52:07 +0000 (11:52 +0300)
Otherwise setting the property on the elements has no effect at all
because it's immediately reset during startup.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/881>

gst-libs/gst/audio/gstaudiodecoder.c
gst-libs/gst/video/gstvideodecoder.c

index b9ecc8d..8da5cea 100644 (file)
@@ -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;
   }
index 0bcd16f..a4dbc74 100644 (file)
@@ -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;