Skip to content

pipewire: keep the capture size the consumer asked for - #2371

Open
matte-schwartz wants to merge 1 commit into
ValveSoftware:masterfrom
matte-schwartz:pipewire-requested-size-fix
Open

pipewire: keep the capture size the consumer asked for#2371
matte-schwartz wants to merge 1 commit into
ValveSoftware:masterfrom
matte-schwartz:pipewire-requested-size-fix

Conversation

@matte-schwartz

Copy link
Copy Markdown
Collaborator

The requested capture size is an optional field parsed into a zero-initialised struct, and it's assigned to the cap unconditionally. A format that omits it clears the cap, after which no downscale happens and the stream carries frames at the full output size.

Advertise the current requested size as the range default and seed the parse with it instead.

The optional requested capture size is parsed into a zero-initialised
struct and assigned to the cap unconditionally. It is also advertised
with a zero default, so renegotiation can clear the consumer's cap and
restore full-size frames.

Advertise the current request as the default and seed the parse with it.
Clear the request and advertise uncapped formats when the last consumer
unlinks, preserving the cap through pauses and renegotiation.
@matte-schwartz
matte-schwartz force-pushed the pipewire-requested-size-fix branch from e48efe0 to 711e9ac Compare September 5, 2026 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant