summaryrefslogtreecommitdiffstats
path: root/pica-client/main.cpp
diff options
context:
space:
mode:
authorAnton <anton@picapica.im>2026-08-14 01:29:59 +0400
committerAnton <anton@picapica.im>2026-08-14 01:29:59 +0400
commitad95ec8759777c4b8df0dcd66fd8200d24e912b1 (patch)
treec5da156d51d1839abaa3ae0804ae588ea64a8cf7 /pica-client/main.cpp
parent6ef469ba767574384c0373daa5363efb95102ed9 (diff)
downloadpica-pica-ad95ec8759777c4b8df0dcd66fd8200d24e912b1.tar.gz
pica-pica-ad95ec8759777c4b8df0dcd66fd8200d24e912b1.zip
pica-client: VAAPI hardware acceleration
Diffstat (limited to 'pica-client/main.cpp')
-rw-r--r--pica-client/main.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/pica-client/main.cpp b/pica-client/main.cpp
index 0fae44c..cc3d90b 100644
--- a/pica-client/main.cpp
+++ b/pica-client/main.cpp
@@ -28,6 +28,7 @@
#include "audiovideocallcontroller.h"
#include "picaactioncenter.h"
#include "picasystray.h"
+#include "vaapi.h"
#include <QDir>
#include <QMessageBox>
#include <QString>
@@ -500,6 +501,12 @@ int main(int argc, char *argv[])
{
QApplication a(argc, argv);
+#ifdef HAVE_VAAPI
+ // Decoded hardware frames travel from the decoding thread to the widget
+ // drawing them through queued signals, which needs their type registered.
+ VaapiContext::registerMetaTypes();
+#endif
+
#ifdef WIN32
config_resourceDir = QLatin1String("share\\");
#elif defined(__APPLE__)