From b01858931caeb8d025b4fdaa1fa13712aba6c119 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Tue, 30 Apr 2019 15:42:17 +0200 Subject: [PATCH] v4l2: add camera media.role --- spa/plugins/alsa/alsa-device.c | 1 - spa/plugins/v4l2/v4l2-source.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/spa/plugins/alsa/alsa-device.c b/spa/plugins/alsa/alsa-device.c index ac65ff38f..b3ca7c8a8 100644 --- a/spa/plugins/alsa/alsa-device.c +++ b/spa/plugins/alsa/alsa-device.c @@ -29,7 +29,6 @@ #include #include -#include #include #include diff --git a/spa/plugins/v4l2/v4l2-source.c b/spa/plugins/v4l2/v4l2-source.c index 1b67da3f7..f639d6d0b 100644 --- a/spa/plugins/v4l2/v4l2-source.c +++ b/spa/plugins/v4l2/v4l2-source.c @@ -325,6 +325,7 @@ static int impl_node_send_command(struct spa_node *node, const struct spa_comman static const struct spa_dict_item info_items[] = { { "media.class", "Video/Source" }, + { "media.role", "Camera" }, { "node.pause-on-idle", "false" }, { "node.driver", "true" }, };