modules: fix small direction issue when getting the ports in adapter and simple-node-endpoint

This commit is contained in:
Julian Bouzas
2020-05-19 11:05:36 -04:00
parent 2660e13c4a
commit d5f167b7db
2 changed files with 2 additions and 2 deletions

View File

@@ -482,7 +482,7 @@ si_adapter_get_ports (WpSiPortInfo * item, const gchar * context)
/* context can only be either NULL or "reverse" */ /* context can only be either NULL or "reverse" */
if (!g_strcmp0 (context, "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; WP_DIRECTION_OUTPUT : WP_DIRECTION_INPUT;
} }
else if (context != NULL) { else if (context != NULL) {

View File

@@ -347,7 +347,7 @@ si_simple_node_endpoint_get_ports (WpSiPortInfo * item, const gchar * context)
/* context can only be either NULL or "reverse" */ /* context can only be either NULL or "reverse" */
if (!g_strcmp0 (context, "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; WP_DIRECTION_OUTPUT : WP_DIRECTION_INPUT;
} }
else if (context != NULL) { else if (context != NULL) {