Apply "pulsesink: uncork if needed upon commit" again 80/200980/1 accepted/tizen/unified/20190311.072504 submit/tizen/20190307.052504 submit/tizen/20190308.025958
authorSangchul Lee <sc11.lee@samsung.com>
Tue, 5 Mar 2019 03:33:57 +0000 (12:33 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Thu, 7 Mar 2019 01:49:58 +0000 (10:49 +0900)
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 <sc11.lee@samsung.com>
ext/pulse/pulsesink.c

index a63374c..2a58b78 100644 (file)
@@ -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;