audio/videodecoder: Initialize max_errors in instance_init()

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/882>
This commit is contained in:
Sebastian Dröge 2020-10-20 12:44:21 +03:00
parent ed62e78c6e
commit 6af87dee17
2 changed files with 2 additions and 0 deletions

View file

@ -497,6 +497,7 @@ gst_audio_decoder_init (GstAudioDecoder * dec, GstAudioDecoderClass * klass)
dec->priv->plc = DEFAULT_PLC;
dec->priv->drainable = DEFAULT_DRAINABLE;
dec->priv->needs_format = DEFAULT_NEEDS_FORMAT;
dec->priv->ctx.max_errors = GST_AUDIO_DECODER_MAX_ERRORS;
/* init state */
dec->priv->ctx.min_latency = 0;

View file

@ -699,6 +699,7 @@ gst_video_decoder_init (GstVideoDecoder * decoder, GstVideoDecoderClass * klass)
/* properties */
decoder->priv->do_qos = DEFAULT_QOS;
decoder->priv->max_errors = GST_VIDEO_DECODER_MAX_ERRORS;
decoder->priv->min_latency = 0;
decoder->priv->max_latency = 0;