Browse Source

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

QGC4.4
Gus Grubba 6 years ago committed by Gus Grubba
parent
commit
0bcddf9a98
  1. 2
      src/VideoStreaming/VideoReceiver.cc

2
src/VideoStreaming/VideoReceiver.cc

@ -472,7 +472,7 @@ VideoReceiver::start() @@ -472,7 +472,7 @@ VideoReceiver::start()
void
VideoReceiver::stop()
{
if(qgcApp()->runningUnitTests()) {
if(qgcApp() && qgcApp()->runningUnitTests()) {
return;
}
#if defined(QGC_GST_STREAMING)

Loading…
Cancel
Save