Unverified Commit feab65f5 authored by Don Gagne's avatar Don Gagne Committed by GitHub

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

GStreamer ref counting
parents 6dc24cd2 0c2f65fc
...@@ -659,8 +659,6 @@ VideoReceiver::_shutdownPipeline() { ...@@ -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;
......
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