encodebin: don't access GstElementFactory structure directly

This commit is contained in:
Tim-Philipp Müller 2012-05-19 15:17:18 +01:00
parent 1805273cc5
commit 1c77a3d801

View file

@ -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;