mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
v4l2: Corrected SDL_UDEV_AddCallback return check after #8694.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user