Merge pull request #17973 from j0ki/master

This commit is contained in:
LibretroAdmin 2025-06-04 17:20:56 +02:00 committed by GitHub
commit a44c65f44c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -310,7 +310,8 @@ static void *v4l_init(const char *device, uint64_t caps,
if (!path_is_character_special(v4l->dev_name))
{
RARCH_ERR("[V4L2]: %s is no device.\n", v4l->dev_name);
goto error;
free(v4l);
return NULL;
}
v4l->fd = open(v4l->dev_name, O_RDWR | O_NONBLOCK, 0);