From 0ba25ad43b8b8623db4d5ee6c2454fc68d68b672 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Tue, 20 Sep 2016 17:31:55 +0100 Subject: [PATCH] examples: seek: fix build with MSVC Use G_PI instead of M_PI. Could also have defined _USE_MATH_DEFINES or included gst/math-compat.h but this seems simplest. --- tests/examples/seek/stepping.c | 2 +- tests/examples/seek/stepping2.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/examples/seek/stepping.c b/tests/examples/seek/stepping.c index 44bc033..31656af 100644 --- a/tests/examples/seek/stepping.c +++ b/tests/examples/seek/stepping.c @@ -36,7 +36,7 @@ do_step (GstElement * bin) length = sin (period); - period += M_PI / 40; + period += G_PI / 40; length += 1.1; length *= 100 * GST_MSECOND; diff --git a/tests/examples/seek/stepping2.c b/tests/examples/seek/stepping2.c index 70d297d..34922a9 100644 --- a/tests/examples/seek/stepping2.c +++ b/tests/examples/seek/stepping2.c @@ -36,7 +36,7 @@ do_step (GstElement * bin) rate = sin (period); - period += M_PI / 150; + period += G_PI / 150; rate += 1.2; -- 2.7.4