encodebin: Fix compilation after the removal of GstElementDetails

This commit is contained in:
Sebastian Dröge 2011-05-20 12:32:35 +02:00
parent a9b134d1a9
commit 1be10803ba

View 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 */