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

Merge branch 'pr2006'

This commit is contained in:
tux3 2015-07-16 22:13:53 +02:00
commit f10b4eaee7
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -104,7 +104,7 @@ CameraDevice* CameraDevice::open(QString devName, VideoMode mode)
} }
AVDictionary* options = nullptr; AVDictionary* options = nullptr;
if (false); if (!iformat);
#ifdef Q_OS_LINUX #ifdef Q_OS_LINUX
else if (devName.startsWith("x11grab#")) else if (devName.startsWith("x11grab#"))
{ {
@ -255,7 +255,7 @@ QVector<QPair<QString, QString>> CameraDevice::getDeviceList()
if (!getDefaultInputFormat()) if (!getDefaultInputFormat())
return devices; return devices;
if (false); if (!iformat);
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
else if (iformat->name == QString("dshow")) else if (iformat->name == QString("dshow"))
devices += DirectShow::getDeviceList(); devices += DirectShow::getDeviceList();
@ -294,7 +294,7 @@ QString CameraDevice::getDefaultDeviceName()
QVector<VideoMode> CameraDevice::getVideoModes(QString devName) QVector<VideoMode> CameraDevice::getVideoModes(QString devName)
{ {
if (false); if (!iformat);
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
else if (iformat->name == QString("dshow")) else if (iformat->name == QString("dshow"))
return DirectShow::getDeviceModes(devName); return DirectShow::getDeviceModes(devName);