session: only set profile on audio for now

This commit is contained in:
Wim Taymans 2019-07-29 16:52:24 +02:00
parent e76a7abceb
commit 40e3ba8bb4

View file

@ -1071,7 +1071,7 @@ static int rescan_node(struct impl *impl, struct node *node)
node->session = session; node->session = session;
spa_list_append(&session->node_list, &node->session_link); spa_list_append(&session->node_list, &node->session_link);
if (!exclusive) { if (!exclusive && peer->media_type == SPA_MEDIA_TYPE_audio) {
do_link_profile: do_link_profile:
audio_info = peer->format; audio_info = peer->format;