From fb736b49f14f5f7ef92c02757a640ee9e320e95e Mon Sep 17 00:00:00 2001 From: sfan5 Date: Wed, 26 Aug 2020 16:14:29 +0200 Subject: ao/pulse: create the stream corked Previously get_state() would keep setting the cork status while paused, but it only does for that after underflows now. Correct this oversight by creating the stream corked for start() to uncork it at a later time. fixes #8026 --- audio/out/ao_pulse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'audio/out') diff --git a/audio/out/ao_pulse.c b/audio/out/ao_pulse.c index 6cea79103b..b09d26241e 100644 --- a/audio/out/ao_pulse.c +++ b/audio/out/ao_pulse.c @@ -444,7 +444,7 @@ static int init(struct ao *ao) .fragsize = -1, }; - int flags = PA_STREAM_NOT_MONOTONIC; + int flags = PA_STREAM_NOT_MONOTONIC | PA_STREAM_START_CORKED; if (!priv->cfg_latency_hacks) flags |= PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_AUTO_TIMING_UPDATE; -- cgit v1.2.3