replace event on a pad probe?

Sebastian Dröge sebastian at centricular.com
Mon Jan 13 13:08:41 PST 2014


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.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140113/0d99e0f8/attachment.pgp>


More information about the gstreamer-devel mailing list