mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 04:56:14 +00:00
tests: Make sure we specify guint64 with g_object_set arguments
Avoids crashers on 32bit machines
This commit is contained in:
parent
849d6ab872
commit
098a2294f3
1 changed files with 3 additions and 3 deletions
|
@ -112,7 +112,7 @@ GST_START_TEST (test_keyfile_save)
|
||||||
source = (GESTimelineObject *) ges_timeline_test_source_new ();
|
source = (GESTimelineObject *) ges_timeline_test_source_new ();
|
||||||
ges_simple_timeline_layer_add_object (GES_SIMPLE_TIMELINE_LAYER (layer),
|
ges_simple_timeline_layer_add_object (GES_SIMPLE_TIMELINE_LAYER (layer),
|
||||||
source, -1);
|
source, -1);
|
||||||
g_object_set (G_OBJECT (source), "duration", 2 * GST_SECOND, NULL);
|
g_object_set (G_OBJECT (source), "duration", (guint64) 2 * GST_SECOND, NULL);
|
||||||
|
|
||||||
KEY ("Object0", "type", "GESTimelineTestSource");
|
KEY ("Object0", "type", "GESTimelineTestSource");
|
||||||
KEY ("Object0", "start", "0");
|
KEY ("Object0", "start", "0");
|
||||||
|
@ -132,7 +132,7 @@ GST_START_TEST (test_keyfile_save)
|
||||||
source = (GESTimelineObject *)
|
source = (GESTimelineObject *)
|
||||||
ges_timeline_transition_new_for_nick ((gchar *) "bar-wipe-lr");
|
ges_timeline_transition_new_for_nick ((gchar *) "bar-wipe-lr");
|
||||||
|
|
||||||
g_object_set (G_OBJECT (source), "duration", GST_SECOND / 2, NULL);
|
g_object_set (G_OBJECT (source), "duration", (guint64) GST_SECOND / 2, NULL);
|
||||||
ges_simple_timeline_layer_add_object (GES_SIMPLE_TIMELINE_LAYER (layer),
|
ges_simple_timeline_layer_add_object (GES_SIMPLE_TIMELINE_LAYER (layer),
|
||||||
source, -1);
|
source, -1);
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ GST_START_TEST (test_keyfile_save)
|
||||||
|
|
||||||
GST_DEBUG ("Adding second source");
|
GST_DEBUG ("Adding second source");
|
||||||
source = (GESTimelineObject *) ges_timeline_test_source_new ();
|
source = (GESTimelineObject *) ges_timeline_test_source_new ();
|
||||||
g_object_set (G_OBJECT (source), "duration", 2 * GST_SECOND, NULL);
|
g_object_set (G_OBJECT (source), "duration", (guint64) 2 * GST_SECOND, NULL);
|
||||||
ges_simple_timeline_layer_add_object (GES_SIMPLE_TIMELINE_LAYER (layer),
|
ges_simple_timeline_layer_add_object (GES_SIMPLE_TIMELINE_LAYER (layer),
|
||||||
source, -1);
|
source, -1);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue