Browse Source

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

Fix #4994
reviewable/pr4996/r1
Diadlo 7 years ago
parent
commit
e3726eade6
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727
  1. 4
      src/widget/form/settings/avform.cpp

4
src/widget/form/settings/avform.cpp

@ -29,6 +29,7 @@ @@ -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) @@ -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…
Cancel
Save