diff --git a/src/bindings/capi/thorvg_capi.h b/src/bindings/capi/thorvg_capi.h index f480a2e1..52dd5518 100644 --- a/src/bindings/capi/thorvg_capi.h +++ b/src/bindings/capi/thorvg_capi.h @@ -2361,7 +2361,7 @@ TVG_API Tvg_Result tvg_animation_set_segment(Tvg_Animation* animation, float beg * \retval TVG_RESULT_INSUFFICIENT_CONDITION In case the animation is not loaded. * \retval TVG_RESULT_INVALID_ARGUMENT When the given parameters are @c nullptr. */ -TVG_API Tvg_Result tvg_animation_get_segment(Tvg_Animation* animation, float* begin, float* end = nullptr); +TVG_API Tvg_Result tvg_animation_get_segment(Tvg_Animation* animation, float* begin, float* end); /*! diff --git a/test/capi/capiAnimation.cpp b/test/capi/capiAnimation.cpp index 50377cfa..ea9f771d 100644 --- a/test/capi/capiAnimation.cpp +++ b/test/capi/capiAnimation.cpp @@ -128,7 +128,7 @@ TEST_CASE("Animation Segment", "[capiAnimation]") REQUIRE(end == 1.0f); //Get only segment begin - REQUIRE(tvg_animation_get_segment(animation, &begin) == TVG_RESULT_SUCCESS); + REQUIRE(tvg_animation_get_segment(animation, &begin, nullptr) == TVG_RESULT_SUCCESS); REQUIRE(begin == 0.0f); //Get only segment end