From: Mark Nauwelaerts Date: Thu, 8 Jan 2015 20:07:05 +0000 (+0100) Subject: pulsesink: uncork if needed upon commit X-Git-Tag: 1.19.3~509^2~3922 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0dd46accf6d282ff07065852bd91c85c78af3394;p=platform%2Fupstream%2Fgstreamer.git pulsesink: uncork if needed upon commit ... to provide for a running clock. --- diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c index 28ea856..c20b0a0 100644 --- a/ext/pulse/pulsesink.c +++ b/ext/pulse/pulsesink.c @@ -1516,6 +1516,12 @@ gst_pulseringbuffer_commit (GstAudioRingBuffer * buf, guint64 * sample, if (pbuf->paused) goto was_paused; + /* ensure running clock for whatever out there */ + if (pbuf->corked) { + if (!gst_pulsering_set_corked (pbuf, FALSE, FALSE)) + goto uncork_failed; + } + /* offset is in bytes */ offset = *sample * bpf;