From 47354f3b9ab5a37f997cd6c9351fd09d5a32a8f3 Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Wed, 4 Jan 2017 22:05:24 +0100 Subject: [PATCH] LP-109 fix long video pauses with rtsp protocol over wifi workaround https://bugreports.qt.io/browse/QTBUG-40332 --- ground/gcs/src/app/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ground/gcs/src/app/main.cpp b/ground/gcs/src/app/main.cpp index 734edb7a7..b5a42b1ca 100644 --- a/ground/gcs/src/app/main.cpp +++ b/ground/gcs/src/app/main.cpp @@ -280,6 +280,10 @@ void systemInit() QSurfaceFormat format = QSurfaceFormat::defaultFormat(); format.setSwapInterval(0); QSurfaceFormat::setDefaultFormat(format); + + // see https://bugreports.qt.io/browse/QTBUG-40332 + int timeout = std::numeric_limits::max(); + qputenv("QT_BEARER_POLL_TIMEOUT", QString::number(timeout).toLatin1()); } static FileLogger *logger = NULL;