mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 04:56:24 +00:00
gst-libs/gst/audio/gstbaseaudiosink.c: Pause the write thread before deactivating and releasing the ringbuffer to avo...
Original commit message from CVS: * gst-libs/gst/audio/gstbaseaudiosink.c: (gst_base_audio_sink_setcaps): Pause the write thread before deactivating and releasing the ringbuffer to avoid a deadlock when we do gapless playback with different sample rates in playbin2. Fixes #564929.
This commit is contained in:
parent
4ed1f5d6fd
commit
a579eba73d
2 changed files with 9 additions and 0 deletions
|
@ -1,3 +1,11 @@
|
|||
2008-12-20 Wim Taymans <wim.taymans@collabora.co.uk>
|
||||
|
||||
* gst-libs/gst/audio/gstbaseaudiosink.c:
|
||||
(gst_base_audio_sink_setcaps):
|
||||
Pause the write thread before deactivating and releasing the ringbuffer
|
||||
to avoid a deadlock when we do gapless playback with different sample
|
||||
rates in playbin2. Fixes #564929.
|
||||
|
||||
2008-12-19 Sebastian Dröge <sebastian.droege@collabora.co.uk>
|
||||
|
||||
* gst-libs/gst/audio/gstbaseaudiosrc.c:
|
||||
|
|
|
@ -620,6 +620,7 @@ gst_base_audio_sink_setcaps (GstBaseSink * bsink, GstCaps * caps)
|
|||
GST_DEBUG_OBJECT (sink, "release old ringbuffer");
|
||||
|
||||
/* release old ringbuffer */
|
||||
gst_ring_buffer_pause (sink->ringbuffer);
|
||||
gst_ring_buffer_activate (sink->ringbuffer, FALSE);
|
||||
gst_ring_buffer_release (sink->ringbuffer);
|
||||
|
||||
|
|
Loading…
Reference in a new issue