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:
Arun Raghavan 2011-01-11 23:39:12 +05:30 committed by Tim-Philipp Müller
parent c046dca80a
commit 7280ea1f68

View file

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