mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 04:41:16 +00:00
baseaudiodecoder: Don't take the stream lock in the seek handler
This will lead to deadlocks
This commit is contained in:
parent
58104f9ce5
commit
024f61e75a
1 changed files with 0 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue