Commit dbf1dc04 authored by Jacob Walser's avatar Jacob Walser

Don't define _shutdownPipeline if there is no gstreamer support

parent a457abc9
...@@ -351,6 +351,7 @@ void VideoReceiver::setVideoSavePath(const QString & path) ...@@ -351,6 +351,7 @@ void VideoReceiver::setVideoSavePath(const QString & path)
qCDebug(VideoReceiverLog) << "New Path:" << _path; qCDebug(VideoReceiverLog) << "New Path:" << _path;
} }
#if defined(QGC_GST_STREAMING)
void VideoReceiver::_shutdownPipeline() { void VideoReceiver::_shutdownPipeline() {
GstBus* bus = NULL; GstBus* bus = NULL;
if ((bus = gst_pipeline_get_bus(GST_PIPELINE(_pipeline))) != NULL) { if ((bus = gst_pipeline_get_bus(GST_PIPELINE(_pipeline))) != NULL) {
...@@ -371,6 +372,7 @@ void VideoReceiver::_shutdownPipeline() { ...@@ -371,6 +372,7 @@ void VideoReceiver::_shutdownPipeline() {
_running = false; _running = false;
emit recordingChanged(); emit recordingChanged();
} }
#endif
#if defined(QGC_GST_STREAMING) #if defined(QGC_GST_STREAMING)
void VideoReceiver::_handleError() { void VideoReceiver::_handleError() {
......
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