From: Mark Nauwelaerts Date: Thu, 10 Mar 2011 14:12:54 +0000 (+0100) Subject: baseaudioencoder: fix clearing context X-Git-Tag: 1.19.3~511^2~6555^2~581 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b47c08ba17799ff98e538cec2c13d57d7dec0b9d;p=platform%2Fupstream%2Fgstreamer.git baseaudioencoder: fix clearing context --- diff --git a/gst-libs/gst/audio/gstbaseaudioencoder.c b/gst-libs/gst/audio/gstbaseaudioencoder.c index 87225d9..e4d3fa5 100644 --- a/gst-libs/gst/audio/gstbaseaudioencoder.c +++ b/gst-libs/gst/audio/gstbaseaudioencoder.c @@ -389,13 +389,8 @@ gst_base_audio_encoder_reset (GstBaseAudioEncoder * enc, gboolean full) enc->priv->active = FALSE; enc->priv->samples_in = 0; enc->priv->bytes_out = 0; - memset (enc->ctx, 0, sizeof (enc->ctx)); - enc->ctx->state.bpf = 0; - enc->ctx->state.rate = 0; - enc->ctx->min_latency = 0; - enc->ctx->max_latency = 0; g_free (enc->ctx->state.channel_pos); - enc->ctx->state.channel_pos = NULL; + memset (enc->ctx, 0, sizeof (enc->ctx)); } gst_segment_init (&enc->segment, GST_FORMAT_TIME);