Commit 0bcddf9a authored by Gus Grubba's avatar Gus Grubba Committed by Gus Grubba

CP - Check if qgcApp() actually exists before using it.

parent 8dca2cd4
...@@ -472,7 +472,7 @@ VideoReceiver::start() ...@@ -472,7 +472,7 @@ VideoReceiver::start()
void void
VideoReceiver::stop() VideoReceiver::stop()
{ {
if(qgcApp()->runningUnitTests()) { if(qgcApp() && qgcApp()->runningUnitTests()) {
return; return;
} }
#if defined(QGC_GST_STREAMING) #if defined(QGC_GST_STREAMING)
......
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