Browse Source

Don't unref _tee - we don't hold reference to this object, it is owned by _pipeline

QGC4.4
Andrew Voznytsa 5 years ago committed by Gus Grubba
parent
commit
0c2f65fced
  1. 2
      src/VideoStreaming/VideoReceiver.cc

2
src/VideoStreaming/VideoReceiver.cc

@ -659,8 +659,6 @@ VideoReceiver::_shutdownPipeline() { @@ -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;

Loading…
Cancel
Save