1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Ifdef some dshow code on win only

This commit is contained in:
tux3 2015-05-16 12:08:29 +02:00
parent e5522ba087
commit db7d86ae50

View File

@ -66,6 +66,7 @@ CameraDevice* CameraDevice::open(QString devName, VideoMode mode)
else
{
qWarning() << "Video mode-setting not implemented for input "<<iformat->name;
(void)mode;
}
CameraDevice* dev = open(devName, &options);
@ -162,8 +163,11 @@ QVector<QPair<QString, QString>> CameraDevice::getDeviceList()
if (!getDefaultInputFormat())
return {};
if (iformat->name == QString("dshow"))
if (false);
#ifdef Q_OS_WIN
else if (iformat->name == QString("dshow"))
return DirectShow::getDeviceList();
#endif
else
return getRawDeviceListGeneric();
}
@ -196,6 +200,7 @@ QVector<VideoMode> CameraDevice::getVideoModes(QString devName)
else
qWarning() << "Video mode listing not implemented for input "<<iformat->name;
(void)devName;
return {};
}