From d3fcd7ae68925454cec755d6dca94b6aa7593c1c Mon Sep 17 00:00:00 2001 From: Jacob Walser Date: Mon, 13 Feb 2017 11:38:43 -0500 Subject: [PATCH] Don't send EOS on pipeline if not streaming video --- src/VideoStreaming/VideoReceiver.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/VideoStreaming/VideoReceiver.cc b/src/VideoStreaming/VideoReceiver.cc index 5d6e27f31..0a58ff8d0 100644 --- a/src/VideoStreaming/VideoReceiver.cc +++ b/src/VideoStreaming/VideoReceiver.cc @@ -323,7 +323,9 @@ void VideoReceiver::stop() { #if defined(QGC_GST_STREAMING) qCDebug(VideoReceiverLog) << "stop()"; - if (_pipeline != NULL && !_stopping) { + if(!_streaming) { + _shutdownPipeline(); + } else if (_pipeline != NULL && !_stopping) { qCDebug(VideoReceiverLog) << "Stopping _pipeline"; gst_element_send_event(_pipeline, gst_event_new_eos()); _stopping = true; -- 2.22.0