From 1be10803ba0d1caee8e23ca2909b70da9c887f20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Fri, 20 May 2011 12:32:35 +0200 Subject: [PATCH] encodebin: Fix compilation after the removal of GstElementDetails --- gst/encoding/gstencodebin.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gst/encoding/gstencodebin.c b/gst/encoding/gstencodebin.c index 4d3d7e2558..597ac2e71d 100644 --- a/gst/encoding/gstencodebin.c +++ b/gst/encoding/gstencodebin.c @@ -921,11 +921,13 @@ no_template: static gboolean _has_class (GstElement * element, const gchar * classname) { - GstElementClass *klass; + GstElementFactory *factory; + const gchar *klass; - klass = GST_ELEMENT_GET_CLASS (element); + factory = gst_element_get_factory (element); + klass = gst_element_factory_get_klass (factory); - return strstr (klass->details.klass, classname) != NULL; + return strstr (klass, classname) != NULL; } /* FIXME : Add handling of streams that don't need encoding */