Commit 78ef2305 authored by Andreas Traczyk's avatar Andreas Traczyk

videoview: don't check current video device when switching inputs

Change-Id: I41da79036fd56b0a5ee20c28eb47a0e9243b954a
parent c24fe538
...@@ -207,9 +207,6 @@ VideoView::showContextMenu(const QPoint& position) ...@@ -207,9 +207,6 @@ VideoView::showContextMenu(const QPoint& position)
qWarning() << "Couldn't find device: " << deviceName; qWarning() << "Couldn't find device: " << deviceName;
return; return;
} }
if (LRCInstance::avModel().getCurrentVideoCaptureDevice() == deviceId) {
return;
}
LRCInstance::avModel().switchInputTo(deviceId); LRCInstance::avModel().switchInputTo(deviceId);
resetPreview(); resetPreview();
LRCInstance::avModel().setCurrentVideoCaptureDevice(deviceId); LRCInstance::avModel().setCurrentVideoCaptureDevice(deviceId);
......
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