pulse-server: update initial stream is_paused state

When the stream starts corked, we set the INACTIVE flag and we also need
to set the stream state as PAUSED or else uncork will not unpause
anything.
This commit is contained in:
Wim Taymans 2026-04-15 18:23:59 +02:00
parent 03fd89abea
commit e490c503fd

View file

@ -1779,6 +1779,7 @@ static int do_create_playback_stream(struct client *client, uint32_t command, ui
goto error_errno; goto error_errno;
stream->corked = corked; stream->corked = corked;
stream->is_paused = corked;
stream->adjust_latency = adjust_latency; stream->adjust_latency = adjust_latency;
stream->early_requests = early_requests; stream->early_requests = early_requests;
stream->volume = volume; stream->volume = volume;
@ -2059,6 +2060,7 @@ static int do_create_record_stream(struct client *client, uint32_t command, uint
goto error_errno; goto error_errno;
stream->corked = corked; stream->corked = corked;
stream->is_paused = corked;
stream->adjust_latency = adjust_latency; stream->adjust_latency = adjust_latency;
stream->early_requests = early_requests; stream->early_requests = early_requests;
stream->volume = volume; stream->volume = volume;