appsink new-sample

Nicolas Dufresne nicolas at ndufresne.ca
Fri Dec 8 00:54:29 UTC 2017


Le jeudi 07 décembre 2017 à 16:34 -0700, killerrats a écrit :
> when I added the gst_buffer_unref it keeps it down a little but
> sample unref
> will fail. saying:
> GStreamer-CRITICAL **: gst_mini_object_unref: assertion
> 'mini_object->refcount > 0' failed

No, the buffer is unrefed when you unref the sample. What you forgot is
to unmap the buffer, see gst_buffer_unmap(). Not unmapping a buffer (or
a memory) will leak that object.

Nicolas


More information about the gstreamer-devel mailing list