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

Improve perf of opening/closing AV tab

Should help with #2424
This commit is contained in:
tux3 2015-11-07 18:30:01 +01:00
parent 5c8dc1d7c9
commit bf8bdaf619
No known key found for this signature in database
GPG Key ID: 7E086DD661263264
2 changed files with 2 additions and 4 deletions

View File

@ -172,7 +172,9 @@ bool CameraSource::subscribe()
void CameraSource::unsubscribe()
{
streamBlocker = true;
QMutexLocker l{&biglock};
streamBlocker = false;
if (!_isOpen)
{
@ -200,7 +202,6 @@ void CameraSource::unsubscribe()
device->close();
}
subscriptions--;
}
bool CameraSource::openDevice()

View File

@ -243,9 +243,6 @@ void AVForm::getVideoDevices()
bodyUI->videoDevCombobox->setCurrentIndex(videoDevIndex);
bodyUI->videoDevCombobox->blockSignals(false);
updateVideoModes(videoDevIndex);
QString devName = videoDeviceList[videoDevIndex].first;
camera.open(devName);
}
void AVForm::getAudioInDevices()