context: fix link property

This commit is contained in:
Wim Taymans 2019-05-24 16:13:39 +02:00
parent 7d5e860d0c
commit af61dcebbf

View file

@ -587,7 +587,7 @@ static int set_mask(pa_context *c, struct global *g)
if ((str = pw_properties_get(g->props, PW_KEY_LINK_OUTPUT_PORT)) == NULL) if ((str = pw_properties_get(g->props, PW_KEY_LINK_OUTPUT_PORT)) == NULL)
return 0; return 0;
g->link_info.src = pa_context_find_global(c, pw_properties_parse_int(str)); g->link_info.src = pa_context_find_global(c, pw_properties_parse_int(str));
if ((str = pw_properties_get(g->props, PW_KEY_LINK_OUTPUT_PORT)) == NULL) if ((str = pw_properties_get(g->props, PW_KEY_LINK_INPUT_PORT)) == NULL)
return 0; return 0;
g->link_info.dst = pa_context_find_global(c, pw_properties_parse_int(str)); g->link_info.dst = pa_context_find_global(c, pw_properties_parse_int(str));