mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
tests/check/ges/simplelayer.c: C90 fixes
This commit is contained in:
parent
cd095cfebe
commit
07ec09d9e7
1 changed files with 12 additions and 5 deletions
|
@ -48,6 +48,8 @@ arbitrary_fill_track_func (GESTimelineObject * object,
|
||||||
/* interpret user_data as name of element to create */
|
/* interpret user_data as name of element to create */
|
||||||
|
|
||||||
src = gst_element_factory_make (user_data, NULL);
|
src = gst_element_factory_make (user_data, NULL);
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_START_TEST (test_gsl_add)
|
GST_START_TEST (test_gsl_add)
|
||||||
|
@ -175,6 +177,7 @@ GST_START_TEST (test_gsl_with_transitions)
|
||||||
GESTrack *track;
|
GESTrack *track;
|
||||||
GESCustomTimelineSource *source1, *source2, *source3, *source4;
|
GESCustomTimelineSource *source1, *source2, *source3, *source4;
|
||||||
GESTimelineTransition *tr1, *tr2, *tr3, *tr4, *tr5;
|
GESTimelineTransition *tr1, *tr2, *tr3, *tr4, *tr5;
|
||||||
|
GESSimpleTimelineLayer *gstl;
|
||||||
|
|
||||||
ges_init ();
|
ges_init ();
|
||||||
|
|
||||||
|
@ -194,19 +197,23 @@ GST_START_TEST (test_gsl_with_transitions)
|
||||||
#define ELEMENT "videotestsrc"
|
#define ELEMENT "videotestsrc"
|
||||||
|
|
||||||
/* Create four 1s sources */
|
/* Create four 1s sources */
|
||||||
source1 = ges_custom_timeline_source_new (arbitrary_fill_track_func, ELEMENT);
|
source1 = ges_custom_timeline_source_new (arbitrary_fill_track_func,
|
||||||
|
(gpointer) ELEMENT);
|
||||||
g_object_set (source1, "duration", GST_SECOND, "start", (guint64) 42, NULL);
|
g_object_set (source1, "duration", GST_SECOND, "start", (guint64) 42, NULL);
|
||||||
fail_unless_equals_uint64 (GES_TIMELINE_OBJECT_DURATION (source1),
|
fail_unless_equals_uint64 (GES_TIMELINE_OBJECT_DURATION (source1),
|
||||||
GST_SECOND);
|
GST_SECOND);
|
||||||
source2 = ges_custom_timeline_source_new (arbitrary_fill_track_func, ELEMENT);
|
source2 = ges_custom_timeline_source_new (arbitrary_fill_track_func,
|
||||||
|
(gpointer) ELEMENT);
|
||||||
g_object_set (source2, "duration", GST_SECOND, "start", (guint64) 42, NULL);
|
g_object_set (source2, "duration", GST_SECOND, "start", (guint64) 42, NULL);
|
||||||
fail_unless_equals_uint64 (GES_TIMELINE_OBJECT_DURATION (source2),
|
fail_unless_equals_uint64 (GES_TIMELINE_OBJECT_DURATION (source2),
|
||||||
GST_SECOND);
|
GST_SECOND);
|
||||||
source3 = ges_custom_timeline_source_new (arbitrary_fill_track_func, ELEMENT);
|
source3 = ges_custom_timeline_source_new (arbitrary_fill_track_func,
|
||||||
|
(gpointer) ELEMENT);
|
||||||
g_object_set (source3, "duration", GST_SECOND, "start", (guint64) 42, NULL);
|
g_object_set (source3, "duration", GST_SECOND, "start", (guint64) 42, NULL);
|
||||||
fail_unless_equals_uint64 (GES_TIMELINE_OBJECT_DURATION (source3),
|
fail_unless_equals_uint64 (GES_TIMELINE_OBJECT_DURATION (source3),
|
||||||
GST_SECOND);
|
GST_SECOND);
|
||||||
source4 = ges_custom_timeline_source_new (arbitrary_fill_track_func, ELEMENT);
|
source4 = ges_custom_timeline_source_new (arbitrary_fill_track_func,
|
||||||
|
(gpointer) ELEMENT);
|
||||||
g_object_set (source4, "duration", GST_SECOND, "start", (guint64) 42, NULL);
|
g_object_set (source4, "duration", GST_SECOND, "start", (guint64) 42, NULL);
|
||||||
fail_unless_equals_uint64 (GES_TIMELINE_OBJECT_DURATION (source4),
|
fail_unless_equals_uint64 (GES_TIMELINE_OBJECT_DURATION (source4),
|
||||||
GST_SECOND);
|
GST_SECOND);
|
||||||
|
@ -244,7 +251,7 @@ GST_START_TEST (test_gsl_with_transitions)
|
||||||
/* 4 [4---source3---] */
|
/* 4 [4---source3---] */
|
||||||
/* 5 [5---source4-----] */
|
/* 5 [5---source4-----] */
|
||||||
|
|
||||||
GESSimpleTimelineLayer *gstl = GES_SIMPLE_TIMELINE_LAYER (layer);
|
gstl = GES_SIMPLE_TIMELINE_LAYER (layer);
|
||||||
|
|
||||||
/* add objects in sequence */
|
/* add objects in sequence */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue