mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 11:10:37 +00:00
autoconvert: don't access GstElementFactory structure directly
This commit is contained in:
parent
5b2c2fa32b
commit
508b9ff51a
1 changed files with 2 additions and 2 deletions
|
@ -593,14 +593,14 @@ static gboolean
|
|||
factory_can_intersect (GstAutoConvert * autoconvert,
|
||||
GstElementFactory * factory, GstPadDirection direction, GstCaps * caps)
|
||||
{
|
||||
GList *templates;
|
||||
const GList *templates;
|
||||
gint has_direction = FALSE;
|
||||
gboolean ret = FALSE;
|
||||
|
||||
g_return_val_if_fail (factory != NULL, FALSE);
|
||||
g_return_val_if_fail (caps != NULL, FALSE);
|
||||
|
||||
templates = factory->staticpadtemplates;
|
||||
templates = gst_element_factory_get_static_pad_templates (factory);
|
||||
|
||||
while (templates) {
|
||||
GstStaticPadTemplate *template = (GstStaticPadTemplate *) templates->data;
|
||||
|
|
Loading…
Reference in a new issue