1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

LP-109 fix long video pauses with rtsp protocol over wifi

workaround https://bugreports.qt.io/browse/QTBUG-40332
This commit is contained in:
Philippe Renon 2017-01-04 22:05:24 +01:00
parent 892c83b30e
commit 47354f3b9a

View File

@ -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<int>::max();
qputenv("QT_BEARER_POLL_TIMEOUT", QString::number(timeout).toLatin1());
}
static FileLogger *logger = NULL;