mirror of https://github.com/mpv-player/mpv
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:
parent
f3f49de918
commit
fb736b49f1
|
@ -444,7 +444,7 @@ static int init(struct ao *ao)
|
||||||
.fragsize = -1,
|
.fragsize = -1,
|
||||||
};
|
};
|
||||||
|
|
||||||
int flags = PA_STREAM_NOT_MONOTONIC;
|
int flags = PA_STREAM_NOT_MONOTONIC | PA_STREAM_START_CORKED;
|
||||||
if (!priv->cfg_latency_hacks)
|
if (!priv->cfg_latency_hacks)
|
||||||
flags |= PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_AUTO_TIMING_UPDATE;
|
flags |= PA_STREAM_INTERPOLATE_TIMING|PA_STREAM_AUTO_TIMING_UPDATE;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue