autoconvert: don't access GstElementFactory structure directly
This commit is contained in:
parent
5b2c2fa32b
commit
508b9ff51a
@ -593,14 +593,14 @@ static gboolean
|
|||||||
factory_can_intersect (GstAutoConvert * autoconvert,
|
factory_can_intersect (GstAutoConvert * autoconvert,
|
||||||
GstElementFactory * factory, GstPadDirection direction, GstCaps * caps)
|
GstElementFactory * factory, GstPadDirection direction, GstCaps * caps)
|
||||||
{
|
{
|
||||||
GList *templates;
|
const GList *templates;
|
||||||
gint has_direction = FALSE;
|
gint has_direction = FALSE;
|
||||||
gboolean ret = FALSE;
|
gboolean ret = FALSE;
|
||||||
|
|
||||||
g_return_val_if_fail (factory != NULL, FALSE);
|
g_return_val_if_fail (factory != NULL, FALSE);
|
||||||
g_return_val_if_fail (caps != NULL, FALSE);
|
g_return_val_if_fail (caps != NULL, FALSE);
|
||||||
|
|
||||||
templates = factory->staticpadtemplates;
|
templates = gst_element_factory_get_static_pad_templates (factory);
|
||||||
|
|
||||||
while (templates) {
|
while (templates) {
|
||||||
GstStaticPadTemplate *template = (GstStaticPadTemplate *) templates->data;
|
GstStaticPadTemplate *template = (GstStaticPadTemplate *) templates->data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user