From 2b0c9596090347346ecb619512e46530f122037f Mon Sep 17 00:00:00 2001 From: Elias Steurer Date: Thu, 2 Mar 2023 13:22:26 +0100 Subject: [PATCH] Add 6.5 beta 3 loop lag workaround for windows --- ScreenPlayWallpaper/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ScreenPlayWallpaper/main.cpp b/ScreenPlayWallpaper/main.cpp index 64fc503f..49fb9d39 100644 --- a/ScreenPlayWallpaper/main.cpp +++ b/ScreenPlayWallpaper/main.cpp @@ -25,7 +25,11 @@ Q_IMPORT_QML_PLUGIN(ScreenPlayWeatherPlugin) int main(int argc, char* argv[]) { -#if !defined(Q_OS_LINUX) +#if defined(Q_OS_WIN) + qputenv("QT_MEDIA_BACKEND", "windows"); // Workaround for Qt 6.5 looping lag bug https://bugreports.qt.io/browse/QTBUG-111209 +#endif + +#if defined(Q_OS_OSX) qputenv("QT_MEDIA_BACKEND", "ffmpeg"); #endif