How to transfer GstBuffer from one pipeline to other pipeline

Anton Pryima zingfrid at gmail.com
Thu Jun 18 15:19:41 UTC 2020


Hello Shiva.

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.

Best regards,
Anton.

On Wed, Jun 17, 2020 at 3:39 PM Nicolas Dufresne <nicolas at ndufresne.ca>
wrote:

> Le jeudi 11 juin 2020 à 07:16 -0500, shiva.mudugal a écrit :
> > Hi All,
> >
> >
> > I have two pipelines, as below.
> >
> > pipeline 1 :  udpsrc -> rtpjpegdepay -> jpegdec -> appsink
> >
> > pipeline 2 : appsrc -> identity -> appsink
> >
> > When i get GstBuffer from first pipeline from callback, I just want to
> push
> > that buffer (gst_app_src_push_buffer) to second pipeline. I want let
> second
> > pipeline to handle the buffer and its ownership.
> >
> > How to handle this scenario. Note: Am using gstreamer version 1.16.2
> >
> > Right now am getting below error :
> >
> > (vmss_server:14439): GStreamer-WARNING **: free_priv_data: object
> finalizing
> > but still has parent (object:0x7fe0c8129ea0, parent:0x7fe0c8112b60)
> >
> > (vmss_server:14439): GStreamer-CRITICAL **: gst_mini_object_unref:
> assertion
> > 'GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0' failed
>
> You can locate the code responsible for this assertion (dropping the
> ref of an object that is owned elsewhere) with gdb and the environement
> G_DEBUG.
>
> G_DEBUG=fatal_criticals gdb --args ./my_app <args>
>
> >
> >
> > -Regards,
> > Shiva Kumar
> >
> >
> >
> > --
> > Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200618/f747130e/attachment.htm>


More information about the gstreamer-devel mailing list