mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
pulsesink: Make corking during pause synchronous
This makes the call to pa_stream_cork() during ringbuffer pause() synchronous, which makes sure that the clock does not advance after we take a snapshot for start_time. https://bugzilla.gnome.org/show_bug.cgi?id=639240
This commit is contained in:
parent
c046dca80a
commit
7280ea1f68
1 changed files with 1 additions and 1 deletions
|
@ -1092,7 +1092,7 @@ gst_pulseringbuffer_pause (GstRingBuffer * buf)
|
|||
GST_DEBUG_OBJECT (psink, "pausing and corking");
|
||||
/* make sure the commit method stops writing */
|
||||
pbuf->paused = TRUE;
|
||||
res = gst_pulsering_set_corked (pbuf, TRUE, FALSE);
|
||||
res = gst_pulsering_set_corked (pbuf, TRUE, TRUE);
|
||||
if (pbuf->in_commit) {
|
||||
/* we are waiting in a commit, signal */
|
||||
GST_DEBUG_OBJECT (psink, "signal commit");
|
||||
|
|
Loading…
Reference in a new issue