From: Sangchul Lee Date: Tue, 5 Mar 2019 03:33:57 +0000 (+0900) Subject: Apply "pulsesink: uncork if needed upon commit" again X-Git-Tag: accepted/tizen/unified/20190311.072504^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ceb059fdc3aded281f7f45da0cac64ff6bce533;p=platform%2Fupstream%2Fgst-plugins-good.git Apply "pulsesink: uncork if needed upon commit" again This uncork condition is valid for volume ramping with silence memchunk in pulseaudio when a stream is started. patch history : 46a3c9ac8b2f8182ef8f211f4be09a67e4d42a61 - 2016-04-16 02:21:14 +1000 - Revert "pulsesink: uncork if needed upon commit" : 0dd46accf6d282ff07065852bd91c85c78af3394 - 2015-01-10 13:04:44 +0100 - pulsesink: uncork if needed upon commit Change-Id: I3d9ad358f4c66df1755650960b53043df22a2d1c Signed-off-by: Sangchul Lee --- diff --git a/ext/pulse/pulsesink.c b/ext/pulse/pulsesink.c index a63374c..2a58b78 100644 --- a/ext/pulse/pulsesink.c +++ b/ext/pulse/pulsesink.c @@ -1564,6 +1564,13 @@ gst_pulseringbuffer_commit (GstAudioRingBuffer * buf, guint64 * sample, if (pbuf->paused) goto was_paused; +#ifdef __TIZEN__ + /* ensure running clock for whatever out there */ + if (pbuf->corked) { + if (!gst_pulsering_set_corked (pbuf, FALSE, FALSE)) + goto uncork_failed; + } +#endif /* offset is in bytes */ offset = *sample * bpf;