Timer plugin in Gstreamer

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

Timer plugin in Gstreamer

rmkart
Hi,
I want a timer plugin that runs in it's own thread and checks for timeouts.
For eg: I am receiving packets in a sepearte thread and I want my timeout plugin to check is there any inactivity , say each 3 sec the plugin checks for some data and after some threshold triggers an event to the application.
My pipeline will look like
udpsrc ! queue ! timeout
Is there anyway that GST provides ways to achieve this.
Reply | Threaded
Open this post in threaded view
|

Re: Timer plugin in Gstreamer

rmkart
I could do a timer callback through gst_clock_new_periodic_id().

RK
rmkart wrote
Hi,
I want a timer plugin that runs in it's own thread and checks for timeouts.
For eg: I am receiving packets in a sepearte thread and I want my timeout plugin to check is there any inactivity , say each 3 sec the plugin checks for some data and after some threshold triggers an event to the application.
My pipeline will look like
udpsrc ! queue ! timeout
Is there anyway that GST provides ways to achieve this.
Reply | Threaded
Open this post in threaded view
|

Re: Timer plugin in Gstreamer

rmkart
In reply to this post by rmkart
I could do a timer callback through gst_clock_new_periodic_id().

RK
rmkart wrote
Hi,
I want a timer plugin that runs in it's own thread and checks for timeouts.
For eg: I am receiving packets in a sepearte thread and I want my timeout plugin to check is there any inactivity , say each 3 sec the plugin checks for some data and after some threshold triggers an event to the application.
My pipeline will look like
udpsrc ! queue ! timeout
Is there anyway that GST provides ways to achieve this.