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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/881>
This commit is contained in:
Sebastian Dröge 2020-10-20 11:51:08 +03:00
parent 91ed298bb0
commit ed62e78c6e
2 changed files with 0 additions and 2 deletions

View 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;
}

View 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;