mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -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,7 +332,8 @@ static void node_event_param(void *object, int seq,
|
|||
if (spa_format_audio_raw_parse(param, &info) < 0)
|
||||
goto error;
|
||||
|
||||
n->format = info;
|
||||
if (n->format.channels < info.channels)
|
||||
n->format = info;
|
||||
return;
|
||||
|
||||
error:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue