mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-14 10:46:51 -07:00
Fix Crash if Frame Uploader Thread not started
This commit is contained in:
parent
9e1faf1347
commit
7baa0ffec1
1 changed files with 6 additions and 3 deletions
|
@ -99,9 +99,12 @@ AVOpenGLWidget::AVOpenGLWidget(VideoDecoder *decoder, QWidget *parent)
|
|||
|
||||
AVOpenGLWidget::~AVOpenGLWidget()
|
||||
{
|
||||
frame_uploader_thread->quit();
|
||||
frame_uploader_thread->wait();
|
||||
delete frame_uploader_thread;
|
||||
if(frame_uploader_thread)
|
||||
{
|
||||
frame_uploader_thread->quit();
|
||||
frame_uploader_thread->wait();
|
||||
delete frame_uploader_thread;
|
||||
}
|
||||
delete frame_uploader;
|
||||
delete frame_uploader_context;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue