コード例 #1
0
ファイル: avform.cpp プロジェクト: DaddyDogma/qTox
void AVForm::hideEvent(QHideEvent *)
{
    if (CamVideoSurface)
    {
        CamVideoSurface->setSource(nullptr);
        killVideoSurface();
    }
}
コード例 #2
0
ファイル: avform.cpp プロジェクト: czaks/qTox
void AVForm::hideEvent(QHideEvent *)
{
    if (camVideoSurface)
    {
        camVideoSurface->setSource(nullptr);
        killVideoSurface();
    }
    videoDeviceList.clear();
    Audio::getInstance().unsubscribeInput();
}
コード例 #3
0
ファイル: avform.cpp プロジェクト: Artom-Kozincev/qTox
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);
}
コード例 #4
0
ファイル: avform.cpp プロジェクト: Artom-Kozincev/qTox
AVForm::~AVForm()
{
    killVideoSurface();
    Translator::unregister(this);
    delete bodyUI;
}