From 579ad25a0116707703dcc8bcc5152c7e10f1b3d4 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 12 Oct 2025 23:03:53 -0500 Subject: [PATCH] Add CONFIG+=disable-masterhooks QMake option This allows disabling the DRM master hooks for environments where getting DRM master is impossible (such as sandboxes like Flatpak), but leave the DRM renderer itself enabled for usecases like V4L2 which require the DRM renderer to export DMA-BUFs to EGL. --- app/app.pro | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/app.pro b/app/app.pro index 1a32a303..3968f90f 100644 --- a/app/app.pro +++ b/app/app.pro @@ -325,9 +325,11 @@ libdrm { HEADERS += streaming/video/ffmpeg-renderers/drm.h linux { - message(Master hooks enabled) - SOURCES += masterhook.c masterhook_internal.c - LIBS += -ldl -pthread + !disable-masterhooks { + message(Master hooks enabled) + SOURCES += masterhook.c masterhook_internal.c + LIBS += -ldl -pthread + } } } cuda {