pulse: map stream index to endpoint

This commit is contained in:
Wim Taymans 2019-11-26 17:51:54 +01:00
parent 8335c50e1e
commit 2fddfb02bd
4 changed files with 15 additions and 5 deletions

View file

@ -1493,7 +1493,7 @@ static void sink_input_callback(struct sink_input_data *d)
if (info == NULL)
return;
s = find_stream(d->context, g->id);
s = find_stream(d->context, g->endpoint_info.node_id);
if (info->props) {
if ((name = spa_dict_lookup(info->props, PW_KEY_MEDIA_NAME)) == NULL &&
@ -1793,7 +1793,7 @@ static void source_output_callback(struct source_output_data *d)
if (info == NULL)
return;
s = find_stream(d->context, g->id);
s = find_stream(d->context, g->endpoint_info.node_id);
name = info->name;
if (name == NULL && info->props) {