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.
This commit is contained in:
Thibault Saunier 2018-04-20 17:35:06 -03:00
parent f3762035e7
commit 05115da59e

View file

@ -249,7 +249,8 @@ ges_effect_create_element (GESTrackElement * object)
GError *error = NULL; GError *error = NULL;
GESEffect *self = GES_EFFECT (object); 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); GESTrackType type = ges_track_element_get_track_type (object);
@ -276,10 +277,8 @@ ges_effect_create_element (GESTrackElement * object)
return NULL; return NULL;
} }
GST_DEBUG ("Created effect %p", effect); ges_track_element_add_children_props (object, effect, NULL,
blacklisted_factories, NULL);
ges_track_element_add_children_props (object, effect, wanted_categories,
NULL, NULL);
return effect; return effect;
} }