mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 14:29:25 +08:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user