<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le ven. 11 nov. 2022, 04 h 16, James Linder via gstreamer-devel <<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Guys Hi<br>
<br>
I’ve got a pipeline that has textoverlay elements. I want to dynamically change the text.<br>
Easy, well no …<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You can simply set the the text property, it's thread safe and the update will apply to the next buffer going through.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I thought the least intusive way might be:<br>
<br>
gstreamer process get a signal<br>
handler grabs semaphore<br>
reads work to be done<br>
releases semaphore<br>
continues with gstreamer code<br>
<br>
but no such luck:<br>
"I don't think sem_wait() is async-signal safe.” … oops<br>
<br>
I can think of setting a call back timer function but the are probably ways unknown to me.<br>
Suggestions please<br>
James</blockquote></div></div></div>