Commit 6f1cc0e2 authored by Gus Grubba's avatar Gus Grubba

Don't mess with video streaming during Unittest

parent b811d84e
......@@ -220,6 +220,9 @@ VideoReceiver::_timeout()
void
VideoReceiver::start()
{
if(!qgcApp()->runningUnitTests()) {
return;
}
if(!_videoSettings->streamEnabled()->rawValue().toBool() ||
!_videoSettings->streamConfigured()) {
qCDebug(VideoReceiverLog) << "start() but not enabled/configured";
......@@ -465,6 +468,9 @@ VideoReceiver::start()
void
VideoReceiver::stop()
{
if(!qgcApp()->runningUnitTests()) {
return;
}
#if defined(QGC_GST_STREAMING)
_stop = true;
qCDebug(VideoReceiverLog) << "stop()";
......
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