Commit d3fcd7ae authored by Jacob Walser's avatar Jacob Walser

Don't send EOS on pipeline if not streaming video

parent d48c0084
......@@ -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;
......
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