mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-14 13:21:28 +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);
|
static GType ges_type_timeline_transition_vtype_get_type (void);
|
||||||
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
VTYPE_CROSSFADE = 0,
|
|
||||||
};
|
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
PROP_VTYPE = 5,
|
PROP_VTYPE = 5,
|
||||||
|
@ -140,7 +135,7 @@ ges_timeline_transition_class_init (GESTimelineTransitionClass * klass)
|
||||||
static void
|
static void
|
||||||
ges_timeline_transition_init (GESTimelineTransition * self)
|
ges_timeline_transition_init (GESTimelineTransition * self)
|
||||||
{
|
{
|
||||||
self->vtype = 0;
|
self->vtype = VTYPE_CROSSFADE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GESTrackObject *
|
static GESTrackObject *
|
||||||
|
@ -204,17 +199,19 @@ ges_type_timeline_transition_vtype_get_type (void)
|
||||||
/* plus one for sentinel, plus another for the crossfade GEnumValue */
|
/* plus one for sentinel, plus another for the crossfade GEnumValue */
|
||||||
values = g_new0 (GEnumValue, 2 + n);
|
values = g_new0 (GEnumValue, 2 + n);
|
||||||
|
|
||||||
values->value = 0;
|
for (i = 0, dst = values, src = smpte_enum_class->values; i < n;
|
||||||
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;
|
|
||||||
i++, dst++, src++) {
|
i++, dst++, src++) {
|
||||||
dst->value = src->value;
|
dst->value = src->value;
|
||||||
dst->value_nick = src->value_nick;
|
dst->value_nick = src->value_nick;
|
||||||
dst->value_name = src->value_name;
|
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 = 0;
|
||||||
dst->value_nick = NULL;
|
dst->value_nick = NULL;
|
||||||
dst->value_name = NULL;
|
dst->value_name = NULL;
|
||||||
|
@ -232,7 +229,7 @@ ges_timeline_transition_new_for_nick (char *nick)
|
||||||
_ensure_smpte_enum_class ();
|
_ensure_smpte_enum_class ();
|
||||||
|
|
||||||
if (!strcmp ("crossfade", nick)) {
|
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);
|
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
|
G_END_DECLS
|
||||||
|
|
||||||
|
enum
|
||||||
|
{
|
||||||
|
VTYPE_CROSSFADE = 512,
|
||||||
|
};
|
||||||
|
|
||||||
#endif /* _GES_TIMELINE_TRANSITION */
|
#endif /* _GES_TIMELINE_TRANSITION */
|
||||||
|
|
Loading…
Reference in a new issue