From 7280ea1f68fc43ed4850278b0d75c4ba0e61effe Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Tue, 11 Jan 2011 23:39:12 +0530 Subject: [PATCH] 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 --- ext/pulse/pulsesink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c index 796c7b7234..f885843c85 100644 --- a/ext/pulse/pulsesink.c +++ b/ext/pulse/pulsesink.c @@ -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");