media-session: set device name

This commit is contained in:
Wim Taymans 2018-11-28 12:21:19 +01:00
parent 72dee1686d
commit cff8ce8e99

View file

@ -1160,6 +1160,7 @@ static void rescan_session(struct impl *impl, struct session *sess)
info = node->format;
props = pw_properties_new_dict(node->info->props);
pw_properties_set(props, "device.name", node->info->name);
pw_properties_setf(props, "audio-dsp.direction", "%d", sess->direction);
pw_properties_setf(props, "audio-dsp.maxbuffer", "%ld", MAX_QUANTUM_SIZE * sizeof(float));