mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-26 13:08:29 +00:00
v4l2: return success if the device is ready
This commit is contained in:
@@ -107,6 +107,8 @@ static bool V4L2_WaitDevice(SDL_Camera *device)
|
||||
rc = select(fd + 1, &fds, NULL, NULL, &tv);
|
||||
if ((rc == -1) && (errno == EINTR)) {
|
||||
rc = 0; // pretend it was a timeout, keep looping.
|
||||
} else if (rc > 0) {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Thread is requested to shut down
|
||||
|
Reference in New Issue
Block a user