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

fix(avform): Hotfix for crash on video device change on 'None'

Fix #4994
This commit is contained in:
Diadlo 2018-03-11 22:43:02 +03:00
parent 0a590336b1
commit e3726eade6
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -29,6 +29,7 @@
#include "src/audio/audio.h"
#include "src/audio/iaudiosettings.h"
#include "src/core/core.h"
#include "src/core/coreav.h"
#include "src/core/recursivesignalblocker.h"
#include "src/video/cameradevice.h"
@ -447,7 +448,8 @@ void AVForm::on_videoDevCombobox_currentIndexChanged(int index)
camera.setupDevice(dev, mode);
if (dev == "none") {
coreAV->sendNoVideo();
// TODO: Use injected `coreAv` currently injected `nullptr`
Core::getInstance()->getAv()->sendNoVideo();
}
}