mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-28 19:20:35 +00:00
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:
parent
7de49319d7
commit
08123cc318
1 changed files with 6 additions and 6 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue