From 0c2f65fcedb01bc18226fbaff444a8a34317d7c0 Mon Sep 17 00:00:00 2001 From: Andrew Voznytsa Date: Tue, 25 Feb 2020 22:50:43 +0200 Subject: [PATCH] Don't unref _tee - we don't hold reference to this object, it is owned by _pipeline --- src/VideoStreaming/VideoReceiver.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/VideoStreaming/VideoReceiver.cc b/src/VideoStreaming/VideoReceiver.cc index 1d54618e5..36b3ef9b0 100644 --- a/src/VideoStreaming/VideoReceiver.cc +++ b/src/VideoStreaming/VideoReceiver.cc @@ -659,8 +659,6 @@ VideoReceiver::_shutdownPipeline() { } gst_element_set_state(_pipeline, GST_STATE_NULL); gst_bin_remove(GST_BIN(_pipeline), _videoSink); - gst_bin_remove(GST_BIN(_pipeline), _tee); - gst_object_unref(_tee); _tee = nullptr; gst_object_unref(_pipeline); _pipeline = nullptr; -- 2.22.0