}
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;
}
_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);
return NULL;
}
- return ges_timeline_transition_new (value);
+ return ges_timeline_transition_new (value->value);
}
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