From dbf1dc04534f35d4573799430f6592dfb91b6d68 Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Tue, 17 Jan 2017 16:05:00 -0500 Subject: [PATCH] Don't define _shutdownPipeline if there is no gstreamer support --- src/VideoStreaming/VideoReceiver.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/VideoStreaming/VideoReceiver.cc b/src/VideoStreaming/VideoReceiver.cc index 20aa8713b..c4f698d6a 100644 --- a/src/VideoStreaming/VideoReceiver.cc +++ b/src/VideoStreaming/VideoReceiver.cc @@ -351,6 +351,7 @@ void VideoReceiver::setVideoSavePath(const QString & path) qCDebug(VideoReceiverLog) << "New Path:" << _path; } +#if defined(QGC_GST_STREAMING) void VideoReceiver::_shutdownPipeline() { GstBus* bus = NULL; if ((bus = gst_pipeline_get_bus(GST_PIPELINE(_pipeline))) != NULL) { @@ -371,6 +372,7 @@ void VideoReceiver::_shutdownPipeline() { _running = false; emit recordingChanged(); } +#endif #if defined(QGC_GST_STREAMING) void VideoReceiver::_handleError() { -- 2.22.0