How to Check Links Up Front for "Sometimes" Pads

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

How to Check Links Up Front for "Sometimes" Pads

Greg Wunder
How to Check Links Up Front for "Sometimes" Pads

What is the proper method to check for linkage between pads that may have availability of "Sometimes"?
Are there code examples of this?



------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to Check Links Up Front for "Sometimes" Pads

Thiago Sousa Santos-2


On Fri, Jun 18, 2010 at 3:08 PM, Greg Wunder <[hidden email]> wrote:

What is the proper method to check for linkage between pads that may have availability of "Sometimes"?
Are there code examples of this?

I'm not sure I get your question, but let me try to answer it.

Once the pad is created, you can use GstPad's API to inspect its caps and see if they can link with gst_pad_can_link, but I assume you want to know before these pads exist.

GstElement has function to get its template pads, so you can compare the templates of 2 pads and check if their caps intersect, so they 'might' link.

Hope this helps.
 




------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




--
Thiago Sousa Santos

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel