mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 13:18:24 +00:00
QtMultimediaCamera: fix invalid settings
This commit is contained in:
parent
7c48160beb
commit
a15e4e80c6
1 changed files with 5 additions and 2 deletions
|
@ -93,8 +93,10 @@ void QtMultimediaCamera::SetFrameRate(Service::CAM::FrameRate frame_rate) {
|
||||||
|
|
||||||
auto framerate = FrameRateList[static_cast<int>(frame_rate)];
|
auto framerate = FrameRateList[static_cast<int>(frame_rate)];
|
||||||
|
|
||||||
handler->settings.setMinimumFrameRate(framerate.minimumFrameRate);
|
if (handler->camera->supportedViewfinderFrameRateRanges().contains(framerate)) {
|
||||||
handler->settings.setMaximumFrameRate(framerate.maximumFrameRate);
|
handler->settings.setMinimumFrameRate(framerate.minimumFrameRate);
|
||||||
|
handler->settings.setMaximumFrameRate(framerate.maximumFrameRate);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
QImage QtMultimediaCamera::QtReceiveFrame() {
|
QImage QtMultimediaCamera::QtReceiveFrame() {
|
||||||
|
@ -171,6 +173,7 @@ void QtMultimediaCameraHandler::CreateCamera(const std::string& camera_name) {
|
||||||
settings.setMinimumFrameRate(30);
|
settings.setMinimumFrameRate(30);
|
||||||
settings.setMaximumFrameRate(30);
|
settings.setMaximumFrameRate(30);
|
||||||
camera->setViewfinder(&camera_surface);
|
camera->setViewfinder(&camera_surface);
|
||||||
|
camera->load();
|
||||||
}
|
}
|
||||||
|
|
||||||
void QtMultimediaCameraHandler::StopCamera() {
|
void QtMultimediaCameraHandler::StopCamera() {
|
||||||
|
|
Loading…
Reference in a new issue