From 9214f87663f18e327b58117f7467f5e82828d7b3 Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Wed, 4 Jan 2017 23:37:14 -0500 Subject: [PATCH] Always stop recording video when receiver is stopped --- src/VideoStreaming/VideoReceiver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VideoStreaming/VideoReceiver.cc b/src/VideoStreaming/VideoReceiver.cc index 1f79dc5de..3e1ec6a67 100644 --- a/src/VideoStreaming/VideoReceiver.cc +++ b/src/VideoStreaming/VideoReceiver.cc @@ -195,7 +195,6 @@ VideoReceiver::VideoReceiver(QObject* parent) VideoReceiver::~VideoReceiver() { #if defined(QGC_GST_STREAMING) - stopRecording(); stop(); setVideoSink(NULL); if(_socket) { @@ -457,6 +456,7 @@ void VideoReceiver::stop() #if defined(QGC_GST_STREAMING) if (_pipeline != NULL) { qDebug() << "Stopping pipeline"; + stopRecording(); gst_element_set_state(_pipeline, GST_STATE_NULL); gst_object_unref(_pipeline); _pipeline = NULL; -- 2.22.0