Create GLib main event loop on non-glib systems

This commit is contained in:
Jonas Kvinge
2021-04-14 00:16:07 +02:00
parent 10aaaebc38
commit 74b7738a9d
2 changed files with 36 additions and 1 deletions

View File

@@ -22,8 +22,10 @@
#include "config.h"
#include <glib.h>
#include <gst/gst.h>
#include <QtGlobal>
#include <QObject>
#include <QFuture>
@@ -37,8 +39,12 @@ class GstStartup : public QObject {
void EnsureInitialized() { initializing_.waitForFinished(); }
private:
static GThread *kGThread;
static gpointer GLibMainLoopThreadFunc(gpointer);
void InitializeGStreamer();
void SetEnvironment();
QFuture<void> initializing_;
};