mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
ges/ges-timeline-transition.{c,h}: add a type field
This commit is contained in:
parent
a9b47a1a71
commit
48eeb8d913
2 changed files with 10 additions and 4 deletions
|
@ -83,6 +83,7 @@ ges_timeline_transition_class_init (GESTimelineTransitionClass * klass)
|
|||
static void
|
||||
ges_timeline_transition_init (GESTimelineTransition * self)
|
||||
{
|
||||
self->vtype = NULL;
|
||||
}
|
||||
|
||||
static GESTrackObject *
|
||||
|
@ -94,13 +95,17 @@ ges_tl_transition_create_track_object (GESTimelineObject * obj,
|
|||
|
||||
GST_DEBUG ("Creating a GESTrackTransition");
|
||||
|
||||
res = GES_TRACK_OBJECT (ges_track_transition_new ());
|
||||
res = GES_TRACK_OBJECT (ges_track_transition_new (transition->vtype));
|
||||
|
||||
return res;
|
||||
}
|
||||
|
||||
GESTimelineTransition *
|
||||
ges_timeline_transition_new (void)
|
||||
ges_timeline_transition_new (GEnumValue * vtype)
|
||||
{
|
||||
return g_object_new (GES_TYPE_TIMELINE_TRANSITION, NULL);
|
||||
GESTimelineTransition *ret = g_object_new
|
||||
(GES_TYPE_TIMELINE_TRANSITION, NULL);
|
||||
|
||||
ret->vtype = vtype;
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -45,6 +45,7 @@ G_BEGIN_DECLS
|
|||
|
||||
struct _GESTimelineTransition {
|
||||
GESTimelineObject parent;
|
||||
GEnumValue *vtype;
|
||||
};
|
||||
|
||||
struct _GESTimelineTransitionClass {
|
||||
|
@ -53,7 +54,7 @@ struct _GESTimelineTransitionClass {
|
|||
|
||||
GType ges_timeline_transition_get_type (void);
|
||||
|
||||
GESTimelineTransition* ges_timeline_transition_new (void);
|
||||
GESTimelineTransition *ges_timeline_transition_new (GEnumValue * vtype);
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
|
|
Loading…
Reference in a new issue