summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2010-12-31 02:16:54 (GMT)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2010-12-31 02:16:54 (GMT)
commitcfa7225898948551b590653a10265d6c6344eaf6 (patch)
tree475552d92c274e9ac65af42c9b7fe087119d1e0a
parentcdaf72b614f93f355ea4615dd0313d4a848b4f6a (diff)
cairo, videofilter: use gst/math-compat.h header for rint
-rw-r--r--ext/cairo/gsttimeoverlay.c7
-rw-r--r--gst/videofilter/gstvideobalance.c7
2 files changed, 4 insertions, 10 deletions
diff --git a/ext/cairo/gsttimeoverlay.c b/ext/cairo/gsttimeoverlay.c
index 18f18f8..b731c37 100644
--- a/ext/cairo/gsttimeoverlay.c
+++ b/ext/cairo/gsttimeoverlay.c
@@ -36,19 +36,16 @@
#include "config.h"
#endif
+#include <gst/math-compat.h>
+
#include <gsttimeoverlay.h>
#include <string.h>
-#include <math.h>
#include <cairo.h>
#include <gst/video/video.h>
-#ifndef HAVE_RINT
-#define rint(x) ((double) floor((x)+(((x) < 0)? -0.5 : 0.5)))
-#endif
-
static GstStaticPadTemplate gst_cairo_time_overlay_src_template =
GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
diff --git a/gst/videofilter/gstvideobalance.c b/gst/videofilter/gstvideobalance.c
index 136acae..968e259 100644
--- a/gst/videofilter/gstvideobalance.c
+++ b/gst/videofilter/gstvideobalance.c
@@ -44,17 +44,14 @@
#include "config.h"
#endif
+#include <gst/math-compat.h>
+
#include "gstvideobalance.h"
#include <string.h>
-#include <math.h>
#include <gst/controller/gstcontroller.h>
#include <gst/interfaces/colorbalance.h>
-#ifndef HAVE_RINT
-#define rint(x) (floor((x)+0.5))
-#endif
-
GST_DEBUG_CATEGORY_STATIC (videobalance_debug);
#define GST_CAT_DEFAULT videobalance_debug