videoconvert: get running

This commit is contained in:
columbarius 2023-09-24 15:00:08 +02:00
parent 29bcebe4fe
commit b8cbfe61d0

View file

@ -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);