mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-09-02 10:13:51 +00:00
supply type param to _find_track_objects in unit tests
This commit is contained in:
parent
3b1a0d756d
commit
286c5f78db
4 changed files with 9 additions and 5 deletions
|
@ -144,7 +144,8 @@ GST_START_TEST (test_test_source_in_layer)
|
||||||
assert_equals_int (ptrn, GES_VIDEO_TEST_PATTERN_WHITE);
|
assert_equals_int (ptrn, GES_VIDEO_TEST_PATTERN_WHITE);
|
||||||
|
|
||||||
trobj =
|
trobj =
|
||||||
ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source), v);
|
ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source), v,
|
||||||
|
GES_TYPE_TRACK_VIDEO_TEST_SOURCE);
|
||||||
|
|
||||||
ptrn = ((GESTrackVideoTestSource *) trobj)->pattern;
|
ptrn = ((GESTrackVideoTestSource *) trobj)->pattern;
|
||||||
assert_equals_int (ptrn, GES_VIDEO_TEST_PATTERN_WHITE);
|
assert_equals_int (ptrn, GES_VIDEO_TEST_PATTERN_WHITE);
|
||||||
|
@ -153,7 +154,7 @@ GST_START_TEST (test_test_source_in_layer)
|
||||||
/* test audio properties as well */
|
/* test audio properties as well */
|
||||||
|
|
||||||
trobj = ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source),
|
trobj = ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source),
|
||||||
a);
|
a, GES_TYPE_TRACK_AUDIO_TEST_SOURCE);
|
||||||
g_assert (GES_IS_TRACK_AUDIO_TEST_SOURCE (trobj));
|
g_assert (GES_IS_TRACK_AUDIO_TEST_SOURCE (trobj));
|
||||||
assert_equals_float (source->freq, 440);
|
assert_equals_float (source->freq, 440);
|
||||||
assert_equals_float (source->volume, 0);
|
assert_equals_float (source->volume, 0);
|
||||||
|
|
|
@ -90,7 +90,8 @@ GST_START_TEST (test_layer_properties)
|
||||||
/* Add the object to the timeline */
|
/* Add the object to the timeline */
|
||||||
fail_unless (ges_timeline_layer_add_object (layer,
|
fail_unless (ges_timeline_layer_add_object (layer,
|
||||||
GES_TIMELINE_OBJECT (object)));
|
GES_TIMELINE_OBJECT (object)));
|
||||||
trackobject = ges_timeline_object_find_track_object (object, track);
|
trackobject = ges_timeline_object_find_track_object (object, track,
|
||||||
|
G_TYPE_NONE);
|
||||||
fail_unless (trackobject != NULL);
|
fail_unless (trackobject != NULL);
|
||||||
|
|
||||||
/* This is not a SimpleLayer, therefore the properties shouldn't have changed */
|
/* This is not a SimpleLayer, therefore the properties shouldn't have changed */
|
||||||
|
|
|
@ -136,7 +136,8 @@ GST_START_TEST (test_overlay_in_layer)
|
||||||
g_free (text);
|
g_free (text);
|
||||||
|
|
||||||
trobj =
|
trobj =
|
||||||
ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source), v);
|
ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source), v,
|
||||||
|
G_TYPE_NONE);
|
||||||
|
|
||||||
/* test the font-desc property */
|
/* test the font-desc property */
|
||||||
g_object_set (source, "font-desc", (gchar *) "sans 72", NULL);
|
g_object_set (source, "font-desc", (gchar *) "sans 72", NULL);
|
||||||
|
|
|
@ -143,7 +143,8 @@ GST_START_TEST (test_title_source_in_layer)
|
||||||
g_free (text);
|
g_free (text);
|
||||||
|
|
||||||
trobj =
|
trobj =
|
||||||
ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source), v);
|
ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source), v,
|
||||||
|
GES_TYPE_TRACK_TITLE_SOURCE);
|
||||||
|
|
||||||
/* test the font-desc property */
|
/* test the font-desc property */
|
||||||
g_object_set (source, "font-desc", (gchar *) "sans 72", NULL);
|
g_object_set (source, "font-desc", (gchar *) "sans 72", NULL);
|
||||||
|
|
Loading…
Reference in a new issue