baseaudioencoder: Taking the OBJECT lock in reset() is not needed

This commit is contained in:
Sebastian Dröge 2011-08-17 09:58:01 +02:00
parent c24533c8be
commit ebc740ea06

View file

@ -367,8 +367,6 @@ gst_base_audio_encoder_init (GstBaseAudioEncoder * enc,
static void static void
gst_base_audio_encoder_reset (GstBaseAudioEncoder * enc, gboolean full) gst_base_audio_encoder_reset (GstBaseAudioEncoder * enc, gboolean full)
{ {
GST_OBJECT_LOCK (enc);
if (full) { if (full) {
enc->priv->active = FALSE; enc->priv->active = FALSE;
enc->priv->samples_in = 0; enc->priv->samples_in = 0;
@ -391,8 +389,6 @@ gst_base_audio_encoder_reset (GstBaseAudioEncoder * enc, gboolean full)
enc->priv->base_gp = -1; enc->priv->base_gp = -1;
enc->priv->samples = 0; enc->priv->samples = 0;
enc->priv->discont = FALSE; enc->priv->discont = FALSE;
GST_OBJECT_UNLOCK (enc);
} }
static void static void