tests: clip: fix test_rate_effects_duration_limit
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Tue, 14 Jul 2020 08:20:32 +0000 (10:20 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Tue, 14 Jul 2020 08:20:32 +0000 (10:20 +0200)
Fix this assertion:
g_value_copy: assertion 'g_value_type_compatible (G_VALUE_TYPE (src_value), G_VALUE_TYPE (dest_value))' failed

'tempo' is a float, not a double.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/199>

tests/check/ges/clip.c

index 9e034b164a47381285059700c0c979159669acfc..d2d0368dbae2791736cbfa973f50d05aea839a58 100644 (file)
@@ -4118,7 +4118,7 @@ GST_START_TEST (test_rate_effects_duration_limit)
 
   _assert_set_rate (videorate, "rate", 0.1, dval);
   assert_equals_int (limit_notify_count, 6);
-  _assert_set_rate (pitch, "tempo", 0.5, dval);
+  _assert_set_rate (pitch, "tempo", 0.5, fval);
 
   assert_equals_int (limit_notify_count, 7);
   _assert_duration_limit (clip, 256);
@@ -4133,7 +4133,7 @@ GST_START_TEST (test_rate_effects_duration_limit)
   _assert_rate_equal (pitch, "rate", 0.5, fval);
   _assert_rate_equal (pitch, "tempo", 0.5, fval);
 
-  _assert_set_rate (pitch, "tempo", 1.0, dval);
+  _assert_set_rate (pitch, "tempo", 1.0, fval);
   assert_equals_int (limit_notify_count, 8);
   _assert_set_rate (videorate, "rate", 0.5, dval);