Commit 05115da5 authored by Thibault Saunier's avatar Thibault Saunier 🌵
Browse files

effect: Allow setting properties on any element specified by the user

Those are the elements he cares about and we should expose their APIs
as is, event if they are not classified as effects. For example if
the user want to use a capsfilter as effect, he should be able to set
its caps.
parent f3762035
......@@ -249,7 +249,8 @@ ges_effect_create_element (GESTrackElement * object)
GError *error = NULL;
GESEffect *self = GES_EFFECT (object);
const gchar *wanted_categories[] = { "Effect", NULL };
const gchar *blacklisted_factories[] =
{ "audioconvert", "audioresample", "videoconvert", NULL };
GESTrackType type = ges_track_element_get_track_type (object);
......@@ -276,10 +277,8 @@ ges_effect_create_element (GESTrackElement * object)
return NULL;
}
GST_DEBUG ("Created effect %p", effect);
ges_track_element_add_children_props (object, effect, wanted_categories,
NULL, NULL);
ges_track_element_add_children_props (object, effect, NULL,
blacklisted_factories, NULL);
return effect;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment