mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-18 20:18:59 +00:00
v4l2: Corrected SDL_UDEV_AddCallback return check after #8694.
This commit is contained in:
parent
0b5875825e
commit
2cdff93578
1 changed files with 1 additions and 1 deletions
|
|
@ -869,7 +869,7 @@ static void V4L2_DetectDevices(void)
|
|||
{
|
||||
#ifdef SDL_USE_LIBUDEV
|
||||
if (SDL_UDEV_Init() == 0) {
|
||||
if (SDL_UDEV_AddCallback(CameraUdevCallback) >= 0) { // !!! FIXME: this should return 0 on success, it currently returns 1.
|
||||
if (SDL_UDEV_AddCallback(CameraUdevCallback) == 0) {
|
||||
SDL_UDEV_Scan(); // Force a scan to build the initial device list
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue