From 1c77a3d8014bc8ac0c74f55812dec32972e083d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 19 May 2012 15:17:18 +0100 Subject: [PATCH] encodebin: don't access GstElementFactory structure directly --- gst/encoding/gstencodebin.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c index 3c261a2..749cf23 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; -- 2.7.4