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:
sfan5 2020-08-26 16:14:29 +02:00
parent f3f49de918
commit fb736b49f1
1 changed files with 1 additions and 1 deletions

View File

@ -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;