diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c index 3c261a275e..749cf239e5 100644 --- a/gst/encoding/gstencodebin.c +++ b/gst/encoding/gstencodebin.c @@ -1496,8 +1496,9 @@ static gboolean _factory_can_handle_caps (GstElementFactory * factory, const GstCaps * caps, GstPadDirection dir, gboolean exact) { - GList *templates = factory->staticpadtemplates; + const GList *templates; + templates = gst_element_factory_get_static_pad_templates (factory); while (templates) { GstStaticPadTemplate *template = (GstStaticPadTemplate *) templates->data;