mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
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:
parent
91ed298bb0
commit
ed62e78c6e
2 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue