mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 12:41:05 +00:00
encodebin: Fix compilation after the removal of GstElementDetails
This commit is contained in:
parent
a9b134d1a9
commit
1be10803ba
1 changed files with 5 additions and 3 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue