Browse Source

Merge pull request #8426 from mavlink/pr-gstreamer-ref-counting

GStreamer ref counting
QGC4.4
Don Gagne 5 years ago committed by GitHub
parent
commit
feab65f54c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/VideoStreaming/VideoReceiver.cc

2
src/VideoStreaming/VideoReceiver.cc

@ -659,8 +659,6 @@ VideoReceiver::_shutdownPipeline() {
} }
gst_element_set_state(_pipeline, GST_STATE_NULL); gst_element_set_state(_pipeline, GST_STATE_NULL);
gst_bin_remove(GST_BIN(_pipeline), _videoSink); gst_bin_remove(GST_BIN(_pipeline), _videoSink);
gst_bin_remove(GST_BIN(_pipeline), _tee);
gst_object_unref(_tee);
_tee = nullptr; _tee = nullptr;
gst_object_unref(_pipeline); gst_object_unref(_pipeline);
_pipeline = nullptr; _pipeline = nullptr;

Loading…
Cancel
Save