<html><head></head><body><div style="color:#000; background-color:#fff; font-family:lucida console, sans-serif;font-size:13px"><div>It is a one shot task that I need to execute.</div><div><br></div><div>The element analyzes video frames and once it has accumulated enough samples it needs to do a one shot computation that can take several seconds to complete.</div><div>The result of the computation needs to be fed back into the element.<br></div><div><br></div><div id="yui_3_16_0_ym19_1_1480929249868_569583"><span></span></div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: lucida console, sans-serif; font-size: 13px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"><font size="2" face="Arial"> Le Vendredi 9 décembre 2016 10h57, Sebastian Dröge <sebastian@centricular.com> a écrit :<br></font></div> <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;"> <br><br> <div class="y_msg_container">On Fri, 2016-12-09 at 09:50 +0000, philippe renon wrote:<div class="yqt3196229674" id="yqtfd56755"><br clear="none">> Answering my own question : gst_element_async_call() seems to fit the<br clear="none">> bill.</div><br clear="none"><br clear="none">That's more for one-shot, simple tasks that don't take are not<br clear="none">continuously running. Like if you have to do some action on your<br clear="none">element from a non-streaming thread.<br clear="none"><br clear="none">For long-running tasks that are just the element processing, you should<br clear="none">consider starting a new thread.<br clear="none"><br clear="none">-- <br clear="none">Sebastian Dröge, Centricular Ltd · <a shape="rect" href="http://www.centricular.com/" target="_blank">http://www.centricular.com</a><br><br></div> </blockquote> </div> </div>  </div></div></body></html>