summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2020-10-20 12:44:21 +0300
committerTim-Philipp Müller <tim@centricular.com>2020-10-30 18:25:35 +0000
commitd285efe20ccc0668123311cc63b8acdf821af90f (patch)
treef44eb1f1f1a9d90661ebbbfe5d89cd34fc014593
parent51ef1669ae2261018503c7b78d28388ec591a15c (diff)
downloadgstreamer-plugins-base-d285efe20ccc0668123311cc63b8acdf821af90f.tar.gz
audio/videodecoder: Initialize max_errors in instance_init()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/903>
-rw-r--r--gst-libs/gst/audio/gstaudiodecoder.c1
-rw-r--r--gst-libs/gst/video/gstvideodecoder.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c
index 8da5ceafe..c8e4a0c3a 100644
--- a/gst-libs/gst/audio/gstaudiodecoder.c
+++ b/gst-libs/gst/audio/gstaudiodecoder.c
@@ -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;
diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c
index 906c49e5b..f687e3996 100644
--- a/gst-libs/gst/video/gstvideodecoder.c
+++ b/gst-libs/gst/video/gstvideodecoder.c
@@ -647,6 +647,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;