Fix Crash if Frame Uploader Thread not started

This commit is contained in:
Florian Märkl 2019-08-31 18:18:04 +02:00
commit 7baa0ffec1
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857

View file

@ -98,10 +98,13 @@ AVOpenGLWidget::AVOpenGLWidget(VideoDecoder *decoder, QWidget *parent)
}
AVOpenGLWidget::~AVOpenGLWidget()
{
if(frame_uploader_thread)
{
frame_uploader_thread->quit();
frame_uploader_thread->wait();
delete frame_uploader_thread;
}
delete frame_uploader;
delete frame_uploader_context;
}