mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-01 22:58:50 -04:00
v4l2: fix sink/source and output/input names
This commit is contained in:
parent
2a83811297
commit
3cc577ddd6
2 changed files with 4 additions and 4 deletions
|
|
@ -24,11 +24,11 @@ rules = [
|
||||||
{
|
{
|
||||||
matches = [
|
matches = [
|
||||||
{
|
{
|
||||||
# Matches all sinks.
|
# Matches all sources.
|
||||||
node.name = "~v4l2_input.*"
|
node.name = "~v4l2_input.*"
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
# Matches all sources.
|
# Matches all sinks.
|
||||||
node.name = "~v4l2_output.*"
|
node.name = "~v4l2_output.*"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
|
|
@ -156,9 +156,9 @@ static struct node *v4l2_create_node(struct device *dev, uint32_t id,
|
||||||
str += 12;
|
str += 12;
|
||||||
|
|
||||||
if (strstr(info->factory_name, "sink") != NULL)
|
if (strstr(info->factory_name, "sink") != NULL)
|
||||||
prefix = "v4l2_input";
|
|
||||||
else if (strstr(info->factory_name, "source") != NULL)
|
|
||||||
prefix = "v4l2_output";
|
prefix = "v4l2_output";
|
||||||
|
else if (strstr(info->factory_name, "source") != NULL)
|
||||||
|
prefix = "v4l2_input";
|
||||||
else
|
else
|
||||||
prefix = info->factory_name;
|
prefix = info->factory_name;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue