Commit 4644d8cd authored by Sébastien Blin's avatar Sébastien Blin

mediasettingsview: fix camera selection

Change-Id: I78716198d236c2226b2d1fc81e561724f86268ff
parent 7a9704cc
......@@ -377,6 +377,12 @@ set_video_device(MediaSettingsView* self)
auto currentDevice = priv->cpp->avModel_->getDefaultDeviceName();
if (currentDevice == video_device) return;
try {
auto settings = priv->cpp->avModel_->getDeviceSettings(currentDevice);
} catch (const std::out_of_range&) {
g_warning("set_resolution out_of_range exception");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment