Fix audioecho unit test on 32 bit systems

Cast the new value for the "delay" property to GstClockTime.
Integers without type are passed to vararg functions with
an integer type that can hold a pointer.
This commit is contained in:
Sebastian Dröge 2009-02-03 17:10:30 +01:00
parent 7de49319d7
commit 08123cc318

View file

@ -91,8 +91,8 @@ GST_START_TEST (test_passthrough)
gdouble *res;
echo = setup_echo ();
g_object_set (G_OBJECT (echo), "delay", 1, "intensity", 0.0, "feedback",
0.0, NULL);
g_object_set (G_OBJECT (echo), "delay", (GstClockTime) 1, "intensity", 0.0,
"feedback", 0.0, NULL);
fail_unless (gst_element_set_state (echo,
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
"could not set to playing");
@ -134,8 +134,8 @@ GST_START_TEST (test_echo)
gdouble *res;
echo = setup_echo ();
g_object_set (G_OBJECT (echo), "delay", 20000, "intensity", 1.0, "feedback",
0.0, NULL);
g_object_set (G_OBJECT (echo), "delay", (GstClockTime) 20000, "intensity",
1.0, "feedback", 0.0, NULL);
fail_unless (gst_element_set_state (echo,
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
"could not set to playing");
@ -178,8 +178,8 @@ GST_START_TEST (test_feedback)
gdouble *res;
echo = setup_echo ();
g_object_set (G_OBJECT (echo), "delay", 20000, "intensity", 1.0, "feedback",
1.0, NULL);
g_object_set (G_OBJECT (echo), "delay", (GstClockTime) 20000, "intensity",
1.0, "feedback", 1.0, NULL);
fail_unless (gst_element_set_state (echo,
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
"could not set to playing");