replace event on a pad probe?

Lautaro Woites lauchapc87 at gmail.com
Tue Jan 14 09:39:00 PST 2014


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?

--
> 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/20140114/1f260231/attachment.html>


More information about the gstreamer-devel mailing list