Pipeline blocking main thread
Brown, James 2
james.brown at lmco.com
Thu Jul 13 00:07:52 UTC 2017
Hello I am currently using the gstreamer api to display video for my application but it is causing blocking of 100-200ms on the main thread of my application after setting gst_element_set_state(pipeline, GST_STATE_PLAYING). Once the video has actually started playing there are no more hiccups.
My pipeline is of type xvoverlay and uses v4l2src, queue2, and xvimagesink. Currently I am calling gst_element_factory_make, gst_bin_add, gst_element_link, and gst_element_set_state from an application background thread to remove most of the latency as these operations can take up to 2 seconds to complete (is this actually thread safe?), but I cannot remove the remaining 100-200ms of blocking after making all the gstreamer calls in the background.
It is essential that the main thread is not blocked as it is a pseudo real time application. What is causing the blocking? Is there some asynchronous setting I am missing?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170713/be849bf8/attachment.html>
More information about the gstreamer-devel
mailing list