mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
ges/ges-timeline-transition.{c,h}: api change, pass gint instead of GEnumValue
to new()
This commit is contained in:
parent
22534176d8
commit
7beb6a5e5e
2 changed files with 5 additions and 5 deletions
|
@ -101,12 +101,12 @@ ges_tl_transition_create_track_object (GESTimelineObject * obj,
|
|||
}
|
||||
|
||||
GESTimelineTransition *
|
||||
ges_timeline_transition_new (GEnumValue * vtype)
|
||||
ges_timeline_transition_new (gint vtype)
|
||||
{
|
||||
GESTimelineTransition *ret = g_object_new
|
||||
(GES_TYPE_TIMELINE_TRANSITION, NULL);
|
||||
|
||||
ret->vtype = vtype ? vtype->value : 0;
|
||||
ret->vtype = vtype;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
@ -134,7 +134,7 @@ ges_timeline_transition_new_for_nick (char *nick)
|
|||
_ensure_smpte_enum_class ();
|
||||
|
||||
if (!strcmp ("crossfade", nick)) {
|
||||
return ges_timeline_transition_new (NULL);
|
||||
return ges_timeline_transition_new (0);
|
||||
}
|
||||
|
||||
GEnumValue *value = g_enum_get_value_by_nick (smpte_enum_class, nick);
|
||||
|
@ -143,5 +143,5 @@ ges_timeline_transition_new_for_nick (char *nick)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
return ges_timeline_transition_new (value);
|
||||
return ges_timeline_transition_new (value->value);
|
||||
}
|
||||
|
|
|
@ -67,7 +67,7 @@ struct _GESTimelineTransitionClass {
|
|||
|
||||
GType ges_timeline_transition_get_type (void);
|
||||
|
||||
GESTimelineTransition *ges_timeline_transition_new (GEnumValue * vtype);
|
||||
GESTimelineTransition *ges_timeline_transition_new (gint vtype);
|
||||
GESTimelineTransition *ges_timeline_transition_new_for_nick (char *nick);
|
||||
|
||||
G_END_DECLS
|
||||
|
|
Loading…
Reference in a new issue