Gstreamer queue thread

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Gstreamer queue thread

shiva.mudugal
Hi All,

At what stage the gstreamer queue element creates an another thread  on its source pad ?
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer queue thread

Baby Octopus
Administrator
IIRC, it is done when pad is activated. It invokes gst_task function to create a thread
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer queue thread

shiva.mudugal
Hello Baby Octopus,

Thank you very much for your reply. But other elements will also start their task function on src pad, then whey don't they create a thread. How is the task function of queue is differentiated. For example, other decoder elements or post processing elements like resampler or audio convert. They also create a task function on their src pad.

Hope my question makes sense.
Reply | Threaded
Open this post in threaded view
|

Re: Gstreamer queue thread

Baby Octopus
Administrator


On Fri, Mar 3, 2017 at 10:20 AM, shiva.mudugal [via GStreamer-devel] <[hidden email]> wrote:
Hello Baby Octopus,

Thank you very much for your reply. But other elements will also start their task function on src pad, then whey don't they create a thread. How is the task function of queue is differentiated. For example, other decoder elements or post processing elements like resampler or audio convert. They also create a task function on their src pad.

Task function is created only for few elements which need to spawn a separate thread. queue is one such element. Please go through src code of queue for more info

Filter elements do not create any threads, they work in same context of other stream threads. They dont create their own threads

Decoder and encoders might create their own threads internally. But they won't use gst_task. They might use their own internal thread APIs
 
Hope my question makes sense.


If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/Gstreamer-queue-thread-tp4682068p4682081.html
To unsubscribe from Gstreamer queue thread, click here.
NAML