mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
v4l2: improve error debugging
This commit is contained in:
parent
44d743ed95
commit
cd9dc974f5
1 changed files with 4 additions and 1 deletions
|
|
@ -713,7 +713,7 @@ static int v4l2_openat(int dirfd, const char *path, int oflag, mode_t mode)
|
||||||
goto error_unlock;
|
goto error_unlock;
|
||||||
}
|
}
|
||||||
if (file->node == NULL) {
|
if (file->node == NULL) {
|
||||||
errno = -ENOENT;
|
errno = ENOENT;
|
||||||
goto error_unlock;
|
goto error_unlock;
|
||||||
}
|
}
|
||||||
pw_thread_loop_unlock(file->loop);
|
pw_thread_loop_unlock(file->loop);
|
||||||
|
|
@ -735,6 +735,9 @@ error_unlock:
|
||||||
error:
|
error:
|
||||||
if (file)
|
if (file)
|
||||||
free_file(file);
|
free_file(file);
|
||||||
|
|
||||||
|
pw_log_info("path:%s oflag:%d mode:%d -> %d (%s)", path, oflag, mode,
|
||||||
|
-1, strerror(errno));
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue