mirror of
https://gitlab.freedesktop.org/pipewire/wireplumber.git
synced 2026-05-05 08:58:01 +02:00
modules: fix small direction issue when getting the ports in adapter and simple-node-endpoint
This commit is contained in:
parent
2660e13c4a
commit
d5f167b7db
2 changed files with 2 additions and 2 deletions
|
|
@ -482,7 +482,7 @@ si_adapter_get_ports (WpSiPortInfo * item, const gchar * context)
|
|||
|
||||
/* context can only be either NULL or "reverse" */
|
||||
if (!g_strcmp0 (context, "reverse")) {
|
||||
self->direction = (self->direction == WP_DIRECTION_INPUT) ?
|
||||
direction = (self->direction == WP_DIRECTION_INPUT) ?
|
||||
WP_DIRECTION_OUTPUT : WP_DIRECTION_INPUT;
|
||||
}
|
||||
else if (context != NULL) {
|
||||
|
|
|
|||
|
|
@ -347,7 +347,7 @@ si_simple_node_endpoint_get_ports (WpSiPortInfo * item, const gchar * context)
|
|||
|
||||
/* context can only be either NULL or "reverse" */
|
||||
if (!g_strcmp0 (context, "reverse")) {
|
||||
self->direction = (self->direction == WP_DIRECTION_INPUT) ?
|
||||
direction = (self->direction == WP_DIRECTION_INPUT) ?
|
||||
WP_DIRECTION_OUTPUT : WP_DIRECTION_INPUT;
|
||||
}
|
||||
else if (context != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue