void AVForm::hideEvent(QHideEvent *) { if (CamVideoSurface) { CamVideoSurface->setSource(nullptr); killVideoSurface(); } }
void AVForm::hideEvent(QHideEvent *) { if (camVideoSurface) { camVideoSurface->setSource(nullptr); killVideoSurface(); } videoDeviceList.clear(); Audio::getInstance().unsubscribeInput(); }
void AVForm::hideEvent(QHideEvent* event) { if (subscribedToAudioIn) { // TODO: this should not be done in show/hide events Audio::getInstance().unsubscribeInput(); subscribedToAudioIn = false; } if (camVideoSurface) { camVideoSurface->setSource(nullptr); killVideoSurface(); } videoDeviceList.clear(); GenericForm::hideEvent(event); }
AVForm::~AVForm() { killVideoSurface(); Translator::unregister(this); delete bodyUI; }