Commit ed62e78c authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

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: <gstreamer/gst-plugins-base!881>
parent 91ed298b
......@@ -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;
}
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment