modules: fix small direction issue when getting the ports in adapter and simple-node-endpoint
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user