v4l2: use the device name to open in BeginParams

This commit is contained in:
Wim Taymans 2022-09-12 09:51:55 +02:00
parent c00e0e3467
commit 634d7107a4

View file

@ -314,7 +314,7 @@ static int impl_node_send_command(void *object, const struct spa_command *comman
switch (SPA_NODE_COMMAND_ID(command)) { switch (SPA_NODE_COMMAND_ID(command)) {
case SPA_NODE_COMMAND_ParamBegin: case SPA_NODE_COMMAND_ParamBegin:
if ((res = spa_v4l2_open(&port->dev, NULL)) < 0) if ((res = spa_v4l2_open(&port->dev, this->props.device)) < 0)
return res; return res;
break; break;
case SPA_NODE_COMMAND_ParamEnd: case SPA_NODE_COMMAND_ParamEnd: