*
* @return The list of {@link StaticPadTemplate}
*/
public List<StaticPadTemplate> getStaticPadTemplates() {
logger.entering("ElementFactory", "getStaticPadTemplates");
GList glist = gst.gst_element_factory_get_static_pad_templates(this);
logger.log(DEBUG, "gst.gst_element_factory_get_static_pad_templates returned: " + glist);
List<StaticPadTemplate> templates = new ArrayList<StaticPadTemplate>();
GList next = glist;
while (next != null) {
if (next.data != null) {
GstStaticPadTemplate temp = new GstStaticPadTemplate(next.data);
templates.add(new StaticPadTemplate(temp.name_template, temp.direction,
temp.presence, gst.gst_static_caps_get(temp.static_caps)));
}
next = next.next();
}
return templates;
}