mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-04 13:30:12 -05:00
session: keep format with max number of channels
This commit is contained in:
parent
f29d098074
commit
acdfed0d04
1 changed files with 2 additions and 1 deletions
|
|
@ -332,6 +332,7 @@ static void node_event_param(void *object, int seq,
|
||||||
if (spa_format_audio_raw_parse(param, &info) < 0)
|
if (spa_format_audio_raw_parse(param, &info) < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
if (n->format.channels < info.channels)
|
||||||
n->format = info;
|
n->format = info;
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue