reference count of gstreamer elements not decresing

ShilVin vinodkesti at
Sat Nov 10 15:41:41 UTC 2018

Setting pipeline state to NULL state won't remove elements from the pipeline.
gst_element_set_state(m_pstGstConfig->pipeline, GST_STATE_NULL); 

unref of the object will unref all the elements. 

Use gst_bin_remove() function to remove only one element. This function will
reduce the ref count of the element by 1.

Sent from:

More information about the gstreamer-devel mailing list