Move Frame Uploader to Thread

This commit is contained in:
Florian Märkl 2019-08-05 14:18:20 +02:00
parent 3358759aab
commit 679af22f6d
No known key found for this signature in database
GPG key ID: 125BC8A5A6A1E857
4 changed files with 37 additions and 7 deletions

View file

@ -52,7 +52,9 @@ class AVOpenGLWidget: public QOpenGLWidget
AVOpenGLFrame frames[2];
int frame_fg;
QMutex frames_mutex;
QOpenGLContext *frame_uploader_context;
AVOpenGLFrameUploader *frame_uploader;
QThread *frame_uploader_thread;
public:
explicit AVOpenGLWidget(VideoDecoder *decoder, QWidget *parent = nullptr);