mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-19 21:13:12 -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()
|
AVOpenGLWidget::~AVOpenGLWidget()
|
||||||
{
|
{
|
||||||
frame_uploader_thread->quit();
|
if(frame_uploader_thread)
|
||||||
frame_uploader_thread->wait();
|
{
|
||||||
delete frame_uploader_thread;
|
frame_uploader_thread->quit();
|
||||||
|
frame_uploader_thread->wait();
|
||||||
|
delete frame_uploader_thread;
|
||||||
|
}
|
||||||
delete frame_uploader;
|
delete frame_uploader;
|
||||||
delete frame_uploader_context;
|
delete frame_uploader_context;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue