pulsesink: uncork if needed upon commit

... to provide for a running clock.
This commit is contained in:
Mark Nauwelaerts 2015-01-08 21:07:05 +01:00
parent 5c67ba7f88
commit 0dd46accf6

View file

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