encodebin: Fix compilation after the removal of GstElementDetails
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 20 May 2011 10:32:35 +0000 (12:32 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 20 May 2011 10:32:35 +0000 (12:32 +0200)
gst/encoding/gstencodebin.c

index 4d3d7e2..597ac2e 100644 (file)
@@ -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  */