Commit 7c4fce62 authored by Andrew Voznytsa's avatar Andrew Voznytsa

Don't start video receiver within unit tests

parent 1c633e8e
...@@ -726,6 +726,10 @@ VideoManager::_updateVideoUri(unsigned id, const QString& uri) ...@@ -726,6 +726,10 @@ VideoManager::_updateVideoUri(unsigned id, const QString& uri)
void void
VideoManager::_restartVideo(unsigned id) VideoManager::_restartVideo(unsigned id)
{ {
if (qgcApp()->runningUnitTests()) {
return;
}
#if defined(QGC_GST_STREAMING) #if defined(QGC_GST_STREAMING)
bool oldLowLatencyStreaming = _lowLatencyStreaming[id]; bool oldLowLatencyStreaming = _lowLatencyStreaming[id];
QString oldUri = _videoUri[id]; QString oldUri = _videoUri[id];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment