summaryrefslogtreecommitdiffstats
path: root/audio/out
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2020-08-26 16:14:29 +0200
committersfan5 <sfan5@live.de>2020-08-26 16:14:29 +0200
commitfb736b49f14f5f7ef92c02757a640ee9e320e95e (patch)
tree3b3509d7f926989e31b16623b0a4428379989313 /audio/out
parentf3f49de91835b256108a4cc9b242f3880c464889 (diff)
downloadmpv-fb736b49f14f5f7ef92c02757a640ee9e320e95e.tar.bz2
mpv-fb736b49f14f5f7ef92c02757a640ee9e320e95e.tar.xz
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
Diffstat (limited to 'audio/out')
-rw-r--r--audio/out/ao_pulse.c2
1 files changed, 1 insertions, 1 deletions
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;