Browse Source

Merge pull request #4536 from bluerobotics/video-fix

Don't send EOS on pipeline if not streaming video
QGC4.4
Don Gagne 8 years ago committed by GitHub
parent
commit
5451d2233e
  1. 4
      src/VideoStreaming/VideoReceiver.cc

4
src/VideoStreaming/VideoReceiver.cc

@ -323,7 +323,9 @@ void VideoReceiver::stop() @@ -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;

Loading…
Cancel
Save