<div dir="ltr"><div><div><div><div><div><div>I have a pipeline that I am dynamically reconfiguring, and I want to know when the negotiation of caps triggered by that reconfiguration has completed.<br><br></div>My first instinct was to code this:<br>
<br></div>A) Change config of a central element<br></div>B) Add a probe to my sink, to wait for a CAPS event.<br></div>C) when the probe callback is called, set a flag saying renegotiation is done.<br><br></div>However, it occurs to me that renegotiation might manage to complete *between* steps A and B, so that I timeout never having seen a CAPS event. I could check the existing caps before setting up the probe, but how do I know if these caps are old and about to change, or are the result of my reconfiguration?<br>
<br></div>I've thought about reversing the order of A) and B), so that I add my probes before starting reconfiguration, but I worry I might see a spurious CAPS event that way, as renegotiation seems to happen A LOT when I look at logs.<br>
<br clear="all"><div><div><div><div><div><div><div><br>-- <br>Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br><a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br>
<a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a>
</div></div></div></div></div></div></div></div>