mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-07 13:30:09 -05:00
adapter: call reconfigure_mode instead of configure_convert
configure_convert does not set up the current mode, so call the more complete reconfigure_mode to set the initial converter mode.
This commit is contained in:
parent
aea77dc055
commit
6015fa353a
2 changed files with 4 additions and 4 deletions
|
|
@ -2053,10 +2053,9 @@ impl_init(const struct spa_handle_factory *factory,
|
|||
&this->convert_listener, &convert_node_events, this);
|
||||
|
||||
if (strcmp(this->convertname, "video.convert.dummy") == 0) {
|
||||
configure_convert(this, SPA_PARAM_PORT_CONFIG_MODE_none);
|
||||
reconfigure_mode(this, SPA_PARAM_PORT_CONFIG_MODE_passthrough, this->direction, NULL);
|
||||
} else {
|
||||
configure_convert(this, SPA_PARAM_PORT_CONFIG_MODE_convert);
|
||||
reconfigure_mode(this, SPA_PARAM_PORT_CONFIG_MODE_convert, this->direction, NULL);
|
||||
}
|
||||
} else {
|
||||
reconfigure_mode(this, SPA_PARAM_PORT_CONFIG_MODE_passthrough, this->direction, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue