From 024f61e75a088f566cf5fbdc3ddd43ec2df68810 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 18 Aug 2011 10:03:20 +0200 Subject: [PATCH] baseaudiodecoder: Don't take the stream lock in the seek handler This will lead to deadlocks --- omx/gstbaseaudiodecoder.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/omx/gstbaseaudiodecoder.c b/omx/gstbaseaudiodecoder.c index 0aab2c8121..f268cbea11 100644 --- a/omx/gstbaseaudiodecoder.c +++ b/omx/gstbaseaudiodecoder.c @@ -1509,9 +1509,7 @@ gst_base_audio_decoder_do_seek (GstBaseAudioDecoder * dec, GstEvent * event) return FALSE; } - GST_BASE_AUDIO_DECODER_STREAM_LOCK (dec); memcpy (&seek_segment, &dec->segment, sizeof (seek_segment)); - GST_BASE_AUDIO_DECODER_STREAM_UNLOCK (dec); gst_segment_set_seek (&seek_segment, rate, format, flags, start_type, start_time, end_type, end_time, NULL); start_time = seek_segment.last_stop;