#include <cef_version.h>
#endif
+#ifdef HAVE_SRT
+#include <srt/srt.h>
+#endif
+
#include "basic_stats.h"
#ifdef HAVE_CEF
#include "nageru_cef_app.h"
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
av_register_all();
#endif
+#ifdef HAVE_SRT
+ if (global_flags.srt_port >= 0) {
+ srt_startup();
+ }
+#endif
+
QCoreApplication::setAttribute(Qt::AA_ShareOpenGLContexts, true);
QSurfaceFormat fmt;
int rc = app.exec();
delete global_mixer;
- ImageInput::shutdown_updaters();
+#ifdef HAVE_SRT
+ if (global_flags.srt_port >= 0) {
+ srt_cleanup();
+ }
+#endif
return rc;
}