mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
ges: Allow setting children property using the set_object_arg format
This make it much simpler for the user to set enum values and should not cause any issue
This commit is contained in:
parent
4e4473ef8f
commit
38dbfc1c24
1 changed files with 5 additions and 1 deletions
|
@ -119,7 +119,11 @@ static void
|
|||
_set_child_property (GESTimelineElement * self G_GNUC_UNUSED, GObject * child,
|
||||
GParamSpec * pspec, GValue * value)
|
||||
{
|
||||
g_object_set_property (child, pspec->name, value);
|
||||
if (G_VALUE_TYPE (value) != pspec->value_type
|
||||
&& G_VALUE_TYPE (value) == G_TYPE_STRING)
|
||||
gst_util_set_object_arg (child, pspec->name, g_value_get_string (value));
|
||||
else
|
||||
g_object_set_property (child, pspec->name, value);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
Loading…
Reference in a new issue