|
|
@ -66,7 +66,7 @@ VideoManager::setToolbox(QGCToolbox *toolbox) |
|
|
|
#ifndef QGC_DISABLE_UVC |
|
|
|
#ifndef QGC_DISABLE_UVC |
|
|
|
// If we are using a UVC camera setup the device name
|
|
|
|
// If we are using a UVC camera setup the device name
|
|
|
|
QList<QCameraInfo> cameras = QCameraInfo::availableCameras(); |
|
|
|
QList<QCameraInfo> cameras = QCameraInfo::availableCameras(); |
|
|
|
foreach (const QCameraInfo &cameraInfo, cameras) { |
|
|
|
for (const QCameraInfo &cameraInfo: cameras) { |
|
|
|
if(cameraInfo.description() == videoSource) { |
|
|
|
if(cameraInfo.description() == videoSource) { |
|
|
|
_videoSourceID = cameraInfo.deviceName(); |
|
|
|
_videoSourceID = cameraInfo.deviceName(); |
|
|
|
emit videoSourceIDChanged(); |
|
|
|
emit videoSourceIDChanged(); |
|
|
|