Commit 6af87dee authored by Sebastian Dröge's avatar Sebastian Dröge 🍵

audio/videodecoder: Initialize max_errors in instance_init()

Part-of: <gstreamer/gst-plugins-base!882>
parent ed62e78c
......@@ -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;
......
......@@ -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;
......
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