diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2016-09-20 17:31:55 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-09-20 17:31:55 +0100 |
commit | 0ba25ad43b8b8623db4d5ee6c2454fc68d68b672 (patch) | |
tree | fbb90a550e9635e98d02936b263701e557448108 /tests | |
parent | 1852e7b88a76398782dc9f4728d605a07306c4ad (diff) |
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.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/examples/seek/stepping.c | 2 | ||||
-rw-r--r-- | 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 44bc03368..31656af85 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 70d297dbe..34922a94d 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; |