Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/GStreamer/gstreamer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeungha Yang <seungha@centricular.com>2021-07-31 21:36:31 +0300
committerSeungha Yang <seungha@centricular.com>2021-07-31 21:42:18 +0300
commit00e1a36c4f751bcf239ac1dd781e380e9846a5c6 (patch)
tree4fee828eca3d93dc4edb4956d6f58f3823d06b90
parent110edbc8bd05a0be0a8c08d8d97ecb889a127a77 (diff)
examples: controller-graph: Fix build with MSVC
To use macros in math.h, one needs to define _USE_MATH_DEFINES before including the math.h file. Use glib's math define instead. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/862>
-rw-r--r--tests/examples/controller/controller-graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/examples/controller/controller-graph.c b/tests/examples/controller/controller-graph.c
index ef90a271a9..ea87befa21 100644
--- a/tests/examples/controller/controller-graph.c
+++ b/tests/examples/controller/controller-graph.c
@@ -88,7 +88,7 @@ on_graph_draw (GtkWidget * widget, cairo_t * cr, gpointer user_data)
ts = G_GUINT64_CONSTANT (0);
for (i = 0; i < G_N_ELEMENTS (yval); i++) {
cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
- cairo_arc (cr, x + ts, y + yval[i] * h, 3.0, 0.0, 2 * M_PI);
+ cairo_arc (cr, x + ts, y + yval[i] * h, 3.0, 0.0, 2 * G_PI);
cairo_stroke_preserve (cr);
cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
cairo_fill (cr);