mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
audioadapter: perform setup again after a PortConfig
After the ports are reconfigured, we need to perform the setup again so that buffers and processing can happen with the right settings. This fixes an issue when autoswitching between A2DP and HFP with bluetooth headsets when there is also a stereo capture device available. The input stream of the browser is quickly reconfigured between stereo and mono with only a Pause command in between, clearing the setup state is enough to redo the setup when going back to Playing. Fixes #2764
This commit is contained in:
parent
88dec1d378
commit
bf3516ba04
1 changed files with 1 additions and 0 deletions
|
|
@ -979,6 +979,7 @@ static int reconfigure_mode(struct impl *this, enum spa_param_port_config_mode m
|
|||
}
|
||||
|
||||
this->monitor = monitor;
|
||||
this->setup = false;
|
||||
dir->control = control;
|
||||
dir->have_profile = true;
|
||||
dir->mode = mode;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue