CRITICAL error message very confusing and appears incorrect

Andres Gonzalez andres.agoralabs at gmail.com
Thu Aug 25 18:26:03 UTC 2016


Hi,

I am using srtpenc with rtpbin and it appears to be working fine. However,
when I unref the main pipeline I get the following errors:

GStreamer-CRITICAL **: gst_mini_object_unref: assertion
'mini_object->refcount > 0' failed
GStreamer-CRITICAL **: 
Trying to dispose object "SrtpEncode-121", but it still has a parent
"SrtpBin-121".
You need to let the parent manage the object instead of unreffing the object
directly.

SrtpEncode-121 is the name of the srtpenc element and SrtpBin-121 is the
name of the rtpbin.

The reason this appears confusing is that, my code did NOT add the srtpenc
element to the rtpbin nor the main pipeline, so my code did not make the
rtpbin the parent of the srtpenc element.  The srtpenc element was added
internally by the rtpbin "request-rtp-encoder" callback and not by my code. 
Also, I am NOT unreffing either the srtpenc element nor the rtpbin element
(I am only unreffing the main pipeline) so my code is NOT "unreffing the
object directly."  

Question: what is the correct way to use the srtpenc element so I can
resolve this error?

Thanks,
-Andres



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/CRITICAL-error-message-very-confusing-and-appears-incorrect-tp4679245.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list