mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
ges/ges-timeline-transition.{c,h}: value for VTYPE_CROSSFADE changed to 512
and exported in ges-timeline-transition.h
This commit is contained in:
parent
938ac259d0
commit
adeef34c77
2 changed files with 14 additions and 12 deletions
|
@ -32,11 +32,6 @@
|
|||
|
||||
static GType ges_type_timeline_transition_vtype_get_type (void);
|
||||
|
||||
enum
|
||||
{
|
||||
VTYPE_CROSSFADE = 0,
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
PROP_VTYPE = 5,
|
||||
|
@ -140,7 +135,7 @@ ges_timeline_transition_class_init (GESTimelineTransitionClass * klass)
|
|||
static void
|
||||
ges_timeline_transition_init (GESTimelineTransition * self)
|
||||
{
|
||||
self->vtype = 0;
|
||||
self->vtype = VTYPE_CROSSFADE;
|
||||
}
|
||||
|
||||
static GESTrackObject *
|
||||
|
@ -204,17 +199,19 @@ ges_type_timeline_transition_vtype_get_type (void)
|
|||
/* plus one for sentinel, plus another for the crossfade GEnumValue */
|
||||
values = g_new0 (GEnumValue, 2 + n);
|
||||
|
||||
values->value = 0;
|
||||
values->value_name = "Cross-fade between two sources";
|
||||
values->value_nick = "crossfade";
|
||||
|
||||
for (i = 0, dst = (values + 1), src = smpte_enum_class->values; i < n;
|
||||
for (i = 0, dst = values, src = smpte_enum_class->values; i < n;
|
||||
i++, dst++, src++) {
|
||||
dst->value = src->value;
|
||||
dst->value_nick = src->value_nick;
|
||||
dst->value_name = src->value_name;
|
||||
}
|
||||
|
||||
dst->value = VTYPE_CROSSFADE;
|
||||
dst->value_name = "Cross-fade between two sources";
|
||||
dst->value_nick = "crossfade";
|
||||
|
||||
dst++;
|
||||
|
||||
dst->value = 0;
|
||||
dst->value_nick = NULL;
|
||||
dst->value_name = NULL;
|
||||
|
@ -232,7 +229,7 @@ ges_timeline_transition_new_for_nick (char *nick)
|
|||
_ensure_smpte_enum_class ();
|
||||
|
||||
if (!strcmp ("crossfade", nick)) {
|
||||
return ges_timeline_transition_new (0);
|
||||
return ges_timeline_transition_new (VTYPE_CROSSFADE);
|
||||
}
|
||||
|
||||
GEnumValue *value = g_enum_get_value_by_nick (smpte_enum_class, nick);
|
||||
|
|
|
@ -72,4 +72,9 @@ GESTimelineTransition *ges_timeline_transition_new_for_nick (char *nick);
|
|||
|
||||
G_END_DECLS
|
||||
|
||||
enum
|
||||
{
|
||||
VTYPE_CROSSFADE = 512,
|
||||
};
|
||||
|
||||
#endif /* _GES_TIMELINE_TRANSITION */
|
||||
|
|
Loading…
Reference in a new issue