figured out I can replace *gst_sample_get_buffer(sample);* => *gst_sample_get_buffer(gst_sample_copy (sample));* then in the end it will work. -- View this message in context: http://gstreamer-devel.966125.n4.nabble.com/trying-to-unref-buffer-in-appsink-tp4681495p4681506.html Sent from the GStreamer-devel mailing list archive at Nabble.com.