mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
1852e7b88a
commit
0ba25ad43b
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -36,7 +36,7 @@ do_step (GstElement * bin)
|
|||
|
||||
rate = sin (period);
|
||||
|
||||
period += M_PI / 150;
|
||||
period += G_PI / 150;
|
||||
|
||||
rate += 1.2;
|
||||
|
||||
|
|
Loading…
Reference in a new issue