From ebc740ea06356c6ba6e1e7a8f5abf0db5bd5ffc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 17 Aug 2011 09:58:01 +0200 Subject: [PATCH] baseaudioencoder: Taking the OBJECT lock in reset() is not needed --- omx/gstbaseaudioencoder.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/omx/gstbaseaudioencoder.c b/omx/gstbaseaudioencoder.c index b85445dea4..1e6040d4c9 100644 --- a/omx/gstbaseaudioencoder.c +++ b/omx/gstbaseaudioencoder.c @@ -367,8 +367,6 @@ gst_base_audio_encoder_init (GstBaseAudioEncoder * enc, static void gst_base_audio_encoder_reset (GstBaseAudioEncoder * enc, gboolean full) { - GST_OBJECT_LOCK (enc); - if (full) { enc->priv->active = FALSE; 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->samples = 0; enc->priv->discont = FALSE; - - GST_OBJECT_UNLOCK (enc); } static void