diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-10-20 11:51:08 +0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2020-10-29 17:54:00 +0000 |
commit | 2a116c0eb58bc8cfbe27da16b6289b5a9deb9782 (patch) | |
tree | 8928c9def8b96e871b766d11adcf47f0623deece | |
parent | 4d4271f3458cb7d9c9b9052dd363816d7a339294 (diff) | |
download | gstreamer-plugins-base-2a116c0eb58bc8cfbe27da16b6289b5a9deb9782.tar.gz |
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/902>
-rw-r--r-- | gst-libs/gst/audio/gstaudiodecoder.c | 1 | ||||
-rw-r--r-- | gst-libs/gst/video/gstvideodecoder.c | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index b9ecc8d36..8da5ceafe 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -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; } diff --git a/gst-libs/gst/video/gstvideodecoder.c b/gst-libs/gst/video/gstvideodecoder.c index cd92056f2..906c49e5b 100644 --- a/gst-libs/gst/video/gstvideodecoder.c +++ b/gst-libs/gst/video/gstvideodecoder.c @@ -2150,7 +2150,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; |