mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
5c8dc1d7c9
commit
bf8bdaf619
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user