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:
parent
0a590336b1
commit
e3726eade6
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user