mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
v4l: O_NONBLOCK flag should be OR'ed to O_RDWR or mmap will fail below
Closes #1299
This commit is contained in:
parent
98314da00f
commit
5ceaf66079
@ -217,7 +217,7 @@ WebcamVideoCursorV4L(WebcamVideoV4L *src) : MovieVideoCursor(src) {
|
||||
|
||||
int mode = O_RDWR;
|
||||
if (!v4l_blocking) {
|
||||
mode = O_NONBLOCK;
|
||||
mode |= O_NONBLOCK;
|
||||
}
|
||||
|
||||
_fd = open(src->_device.c_str(), mode);
|
||||
|
Loading…
x
Reference in New Issue
Block a user