How to do lengthy processing in an element

philippe renon philippe_renon at yahoo.fr
Fri Dec 9 09:50:24 UTC 2016


Answering my own question : gst_element_async_call() seems to fit the bill. 

    Le Vendredi 2 décembre 2016 17h30, philippe renon <philippe_renon at yahoo.fr> a écrit :
 
 

 Hi,
I have an element that needs, at some point in time after analyzing a number of frames, to do a lengthy processing. Currently it is done in the chain() method, stalling the pipeline, but could be done asynchronously.
Does gstreamer have facilities for launching some task in a separate thread and make the result available to the element once done, all this without having to muck with threads, locks, etc... ?

Cheers,Philippe.



 
   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20161209/a1112032/attachment.html>


More information about the gstreamer-devel mailing list