mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 18:51:11 +00:00
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:
parent
ed62e78c6e
commit
6af87dee17
2 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue