how to handle a signal inside an element?

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

how to handle a signal inside an element?

kevin kelly
hello,there,

I have a question about how the handle the signals inside an element.

For example,  element A on the pipeline emitted a unique signal  "MY_OWN_SIGNAL" and element B needs to do something via function process_on_my_own_signal() when it receive "MY_OWN_SIGNAL", how can I do inside element B? which function/API should I use?

thank you so much for your help.
Reply | Threaded
Open this post in threaded view
|

Re: how to handle a signal inside an element?

Marco Ballesio
Hi,

On Thu, Feb 3, 2011 at 3:47 AM, kevin kelly <[hidden email]> wrote:
>
> hello,there,
>
> I have a question about how the handle the signals inside an element.
>
> For example,  element A on the pipeline emitted a unique signal
> "MY_OWN_SIGNAL" and element B needs to do something via function
> process_on_my_own_signal() when it receive "MY_OWN_SIGNAL", how can I do
> inside element B? which function/API should I use?

I'd not suggest the usage of signals for inter-element communications,
as they're usually not synchronised with the data flow and, yes, the
logic to handle them could become somewhat complex. It's definitely
easier to accomplish the task by using events:

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/section-basics-data.html

Regards

>
> thank you so much for your help.
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/how-to-handle-a-signal-inside-an-element-tp3256657p3256657.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
> Finally, a world-class log management solution at an even better price-free!
> Download using promo code Free_Logger_4_Dev2Dev. Offer expires
> February 28th, so secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsight-sfd2d
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires
February 28th, so secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel