mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 16:21:17 +00:00
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:
parent
f3762035e7
commit
05115da59e
1 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue