<div dir="ltr">Ehlo good people,<div><br></div><div style>In my app I need to take some action before sending first buffer in a new segment. To achieve this I tried the following:</div><div style><br></div><div style>- add an event probe on a sink pad in my custom sink element</div>
<div style>- in an event probe callback find out if it's a segment event and add a buffer probe on the sink pad</div><div style>- in the buffer probe callback do my stuff and return GST_PAD_PROBE_REMOVE</div><div style>
<br></div><div style>This unfortunately generates some spurious segment event duplicates once I try to add another probe within the first probe callback.</div><div style><br></div><div style>The question is whether probes are "reentrant"--can I add a probe from another probe callback?</div>
<div style><br></div><div style>Is this approach OK or maybe I'm barking up the wrong tree?</div><div style><br></div><div style>I'm happy to investigate further if I'm not totally mistaken. I've got an alternative approach that works but the one above seems to me more elegant (if not completely wrong).</div>
<div style><br></div><div style>Thanks,</div><div style>Kris</div></div>