X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fmain.cpp;h=cbf66e6fbcccbf029e1a1153c8ce7d54f629e3d5;hb=b22b0f8e945c5a0b9e738eb982b61aa70b88ed1d;hp=212c0691211a58d1e30dd816eed595dc3409c466;hpb=4df45e479ddbc8e2247be8aab7f2bab5ddaa1b74;p=nageru diff --git a/nageru/main.cpp b/nageru/main.cpp index 212c069..cbf66e6 100644 --- a/nageru/main.cpp +++ b/nageru/main.cpp @@ -30,7 +30,6 @@ extern "C" { #endif #include "shared/context.h" #include "flags.h" -#include "image_input.h" #include "mainwindow.h" #include "mixer.h" #include "quicksync_encoder.h" @@ -67,6 +66,9 @@ int main(int argc, char *argv[]) global_flags.va_display = QuickSyncEncoder::get_usable_va_display(); } + // The OpenGL widgets do not work well with the native Wayland integration. + setenv("QT_QPA_PLATFORM", "xcb", 0); + if ((global_flags.va_display.empty() || global_flags.va_display[0] != '/') && !global_flags.x264_video_to_disk) { // We normally use EGL for zerocopy, but if we use VA against DRM @@ -79,7 +81,7 @@ int main(int argc, char *argv[]) #endif #ifdef HAVE_SRT - if (global_flags.srt_port >= 0) { + if (global_flags.srt_port >= 0 || !global_flags.srt_destination_host.empty()) { srt_startup(); } #endif