diff options
author | sfan5 <sfan5@live.de> | 2020-08-26 16:14:29 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2020-08-26 16:14:29 +0200 |
commit | fb736b49f14f5f7ef92c02757a640ee9e320e95e (patch) | |
tree | 3b3509d7f926989e31b16623b0a4428379989313 | |
parent | f3f49de91835b256108a4cc9b242f3880c464889 (diff) | |
download | mpv-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
-rw-r--r-- | audio/out/ao_pulse.c | 2 |
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; |