mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-06 05:17:48 +00:00
testcamera: Log the camera backend in use.
This commit is contained in:
@@ -124,6 +124,8 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
|
||||
return SDL_APP_FAILURE;
|
||||
}
|
||||
|
||||
SDL_Log("Using SDL camera driver: %s", SDL_GetCurrentCameraDriver());
|
||||
|
||||
SDL_CameraID *devices = SDL_GetCameras(&devcount);
|
||||
if (!devices) {
|
||||
SDL_Log("SDL_GetCameras failed: %s", SDL_GetError());
|
||||
|
||||
Reference in New Issue
Block a user