mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-05-30 21:37:53 -04:00
videoconvert: get running
This commit is contained in:
parent
29bcebe4fe
commit
b8cbfe61d0
1 changed files with 10 additions and 2 deletions
|
|
@ -170,6 +170,8 @@ next:
|
||||||
|
|
||||||
switch (id) {
|
switch (id) {
|
||||||
case SPA_PARAM_EnumPortConfig:
|
case SPA_PARAM_EnumPortConfig:
|
||||||
|
if (this->convert == NULL)
|
||||||
|
return 0;
|
||||||
return convert_enum_port_config(this, seq, id, start, num, filter, &b.b);
|
return convert_enum_port_config(this, seq, id, start, num, filter, &b.b);
|
||||||
case SPA_PARAM_PortConfig:
|
case SPA_PARAM_PortConfig:
|
||||||
if (this->passthrough) {
|
if (this->passthrough) {
|
||||||
|
|
@ -1727,8 +1729,14 @@ impl_init(const struct spa_handle_factory *factory,
|
||||||
spa_node_add_listener(this->convert,
|
spa_node_add_listener(this->convert,
|
||||||
&this->convert_listener, &convert_node_events, this);
|
&this->convert_listener, &convert_node_events, this);
|
||||||
|
|
||||||
// reconfigure_mode(this, true, this->direction, NULL);
|
if (this->direction == SPA_DIRECTION_INPUT) {
|
||||||
configure_convert(this, SPA_PARAM_PORT_CONFIG_MODE_convert);
|
// MODE: CONVERT
|
||||||
|
// configure_convert(this, SPA_PARAM_PORT_CONFIG_MODE_convert);
|
||||||
|
reconfigure_mode(this, true, this->direction, NULL);
|
||||||
|
} else {
|
||||||
|
// MODE: PASSTHROUGH
|
||||||
|
reconfigure_mode(this, true, this->direction, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
link_io(this);
|
link_io(this);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue