diff --git a/src/VideoStreaming/VideoReceiver.cc b/src/VideoStreaming/VideoReceiver.cc index 5d8914929b2e96dee060ad0d471acec20f6406b0..65dc1a16cce5e346419f2191378e64376e6d631b 100644 --- a/src/VideoStreaming/VideoReceiver.cc +++ b/src/VideoStreaming/VideoReceiver.cc @@ -354,6 +354,10 @@ void VideoReceiver::setVideoSavePath(const QString & path) #if defined(QGC_GST_STREAMING) void VideoReceiver::_shutdownPipeline() { + if(!_pipeline) { + qCDebug(VideoReceiverLog) << "No pipeline"; + return; + } GstBus* bus = NULL; if ((bus = gst_pipeline_get_bus(GST_PIPELINE(_pipeline))) != NULL) { gst_bus_disable_sync_message_emission(bus);