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.
This commit is contained in:
Tim-Philipp Müller 2016-09-20 17:31:55 +01:00
parent 1852e7b88a
commit 0ba25ad43b
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -36,7 +36,7 @@ do_step (GstElement * bin)
rate = sin (period);
period += M_PI / 150;
period += G_PI / 150;
rate += 1.2;