replace event on a pad probe?

Lautaro Woites lauchapc87 at gmail.com
Wed Jan 15 05:05:38 PST 2014


2014/1/14 Sebastian Dröge <sebastian at centricular.com>

> On Di, 2014-01-14 at 15:39 -0200, Lautaro Woites wrote:
> > 2014/1/13 Sebastian Dröge <sebastian at centricular.com>
> >
> > > On Mo, 2014-01-13 at 19:49 +0000, Tim Müller wrote:
> > > > On Mon, 2014-01-13 at 17:15 -0200, Lautaro Woites wrote:
> > > >
> > > > Hi,
> > > >
> > > > >  is there a way to change an event data on a pad probe?
> > > > > I've tried to use gst_event_make_writable, but it has returned a
> copy
> > > > > of the event.
> > > >
> > > > In 1.x you should be able to do that. I believe you can just unref
> the
> > > > event in the 'data' member of the GstPadProbeInfo structure which you
> > > > get in your pad probe callback, and then create a new event and put
> that
> > > > into the structure instead.
> > >
> > > Yes, just make sure that the GstPadProbeInfo owns a reference to the
> > > event. Replacing buffers and queries works the same way.
> > >
> > >
> > Thanks! How do I known if GstPadProbeInfo owns the reference to the
> event?
>
> Just don't unref it from your code but let GstPad handle that when it's
> time :)
>
>
Thanks a lot Sebastian!

--
> Sebastian Dröge, Centricular Ltd - http://www.centricular.com
> Expertise, Straight from the Source
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140115/6ffad6e6/attachment.html>


More information about the gstreamer-devel mailing list