mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
GES: Remove useless variables
This commit is contained in:
parent
8da8dda41f
commit
4708fbb4ca
2 changed files with 2 additions and 8 deletions
|
@ -308,16 +308,14 @@ ges_timeline_test_source_new (void)
|
|||
GESTimelineTestSource *
|
||||
ges_timeline_test_source_new_for_nick (gchar * nick)
|
||||
{
|
||||
GESTimelineTestSource *ret;
|
||||
GEnumValue *value;
|
||||
int i;
|
||||
|
||||
for (i = 0, value = &vpattern_enum_values[i]; value->value_nick;
|
||||
value = &vpattern_enum_values[i++]) {
|
||||
if (!strcmp (nick, value->value_nick)) {
|
||||
ret = g_object_new (GES_TYPE_TIMELINE_TEST_SOURCE, "vpattern",
|
||||
return g_object_new (GES_TYPE_TIMELINE_TEST_SOURCE, "vpattern",
|
||||
(gint) value->value, NULL);
|
||||
return ret;
|
||||
}
|
||||
value++;
|
||||
}
|
||||
|
|
|
@ -184,12 +184,8 @@ ges_tl_transition_create_track_object (GESTimelineObject * obj,
|
|||
GESTimelineTransition *
|
||||
ges_timeline_transition_new (GESVideoTransitionType vtype)
|
||||
{
|
||||
GESTimelineTransition *ret;
|
||||
|
||||
ret = g_object_new (GES_TYPE_TIMELINE_TRANSITION, "vtype", (gint) vtype,
|
||||
return g_object_new (GES_TYPE_TIMELINE_TRANSITION, "vtype", (gint) vtype,
|
||||
NULL);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue