<div dir="ltr">Hello Shiva.<div><br></div><div>In the appsink callback, you're not own reference for GstBuffer. You need to perform gst_sample_copy/gst_buffer_copy_deep on the receiver side to get a new object, before pushing it to appsrc. Do not forget to unref it after using.</div><div><br></div><div>Best regards,</div><div>Anton.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 17, 2020 at 3:39 PM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Le jeudi 11 juin 2020 à 07:16 -0500, shiva.mudugal a écrit :<br>
> Hi All,<br>
> <br>
> <br>
> I have two pipelines, as below.<br>
> <br>
> pipeline 1 : udpsrc -> rtpjpegdepay -> jpegdec -> appsink<br>
> <br>
> pipeline 2 : appsrc -> identity -> appsink<br>
> <br>
> When i get GstBuffer from first pipeline from callback, I just want to push<br>
> that buffer (gst_app_src_push_buffer) to second pipeline. I want let second<br>
> pipeline to handle the buffer and its ownership.<br>
> <br>
> How to handle this scenario. Note: Am using gstreamer version 1.16.2<br>
> <br>
> Right now am getting below error :<br>
> <br>
> (vmss_server:14439): GStreamer-WARNING **: free_priv_data: object finalizing<br>
> but still has parent (object:0x7fe0c8129ea0, parent:0x7fe0c8112b60)<br>
> <br>
> (vmss_server:14439): GStreamer-CRITICAL **: gst_mini_object_unref: assertion<br>
> 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed<br>
<br>
You can locate the code responsible for this assertion (dropping the<br>
ref of an object that is owned elsewhere) with gdb and the environement<br>
G_DEBUG.<br>
<br>
G_DEBUG=fatal_criticals gdb --args ./my_app <args><br>
<br>
> <br>
> <br>
> -Regards,<br>
> Shiva Kumar <br>
> <br>
> <br>
> <br>
> --<br>
> Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
> _______________________________________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div>