mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-30 15:52:12 +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:
parent
892c83b30e
commit
47354f3b9a
@ -280,6 +280,10 @@ void systemInit()
|
|||||||
QSurfaceFormat format = QSurfaceFormat::defaultFormat();
|
QSurfaceFormat format = QSurfaceFormat::defaultFormat();
|
||||||
format.setSwapInterval(0);
|
format.setSwapInterval(0);
|
||||||
QSurfaceFormat::setDefaultFormat(format);
|
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;
|
static FileLogger *logger = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user