baseaudiodecoder: Don't take the stream lock in the seek handler

This will lead to deadlocks
This commit is contained in:
Sebastian Dröge 2011-08-18 10:03:20 +02:00
parent 58104f9ce5
commit 024f61e75a

View file

@ -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;