<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/14 Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Di, 2014-01-14 at 15:39 -0200, Lautaro Woites wrote:<br>
> 2014/1/13 Sebastian Dröge <<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>><br>
><br>
> > On Mo, 2014-01-13 at 19:49 +0000, Tim Müller wrote:<br>
> > > On Mon, 2014-01-13 at 17:15 -0200, Lautaro Woites wrote:<br>
> > ><br>
> > > Hi,<br>
> > ><br>
> > > > is there a way to change an event data on a pad probe?<br>
> > > > I've tried to use gst_event_make_writable, but it has returned a copy<br>
> > > > of the event.<br>
> > ><br>
> > > In 1.x you should be able to do that. I believe you can just unref the<br>
> > > event in the 'data' member of the GstPadProbeInfo structure which you<br>
> > > get in your pad probe callback, and then create a new event and put that<br>
> > > into the structure instead.<br>
> ><br>
> > Yes, just make sure that the GstPadProbeInfo owns a reference to the<br>
> > event. Replacing buffers and queries works the same way.<br>
> ><br>
> ><br>
> Thanks! How do I known if GstPadProbeInfo owns the reference to the event?<br>
<br>
</div>Just don't unref it from your code but let GstPad handle that when it's<br>
time :)<br>
<div><div><br></div></div></blockquote><div><br></div><div>Thanks a lot Sebastian! </div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
--<br>
Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
Expertise, Straight from the Source<br>
</div></div><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="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div></div>