use last camera device instead of first

this should prio new devices (like virtual cameras)
This commit is contained in:
Green Sky 2024-10-05 11:59:12 +02:00
parent 3475f0751f
commit ee8604b234
No known key found for this signature in database

View File

@ -54,8 +54,8 @@ std::shared_ptr<FrameStream2I<SDLVideoFrame>> SDLVideo2InputDevice::subscribe(vo
return nullptr;
}
auto device = devices[0];
//auto device = devices[devcount-1];
//auto device = devices[0];
auto device = devices[devcount-1];
SDL_CameraSpec spec {
// FORCE a different pixel format