summaryrefslogtreecommitdiff
path: root/gst/geometrictransform
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-09-10 10:29:38 -0300
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>2010-09-10 10:29:38 -0300
commit6fcbf593b8c6c4249ffe2b65c004ec07c7309d32 (patch)
treefd173c20c7a67236eacf999af3c5da5b4390c43d /gst/geometrictransform
parent6b8ca06871e978634db2ba352298ca80aca3ee5e (diff)
geometrictransform: Fix build with debugging disabled
Add some ifdefs to prevent build failures due to unused variables
Diffstat (limited to 'gst/geometrictransform')
-rw-r--r--gst/geometrictransform/gstfisheye.c2
-rw-r--r--gst/geometrictransform/gsttunnel.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/gst/geometrictransform/gstfisheye.c b/gst/geometrictransform/gstfisheye.c
index a11fca2d6..39be190e8 100644
--- a/gst/geometrictransform/gstfisheye.c
+++ b/gst/geometrictransform/gstfisheye.c
@@ -74,7 +74,9 @@ static gboolean
fisheye_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
{
+#ifndef GST_DISABLE_GST_DEBUG
GstFisheye *fisheye = GST_FISHEYE_CAST (gt);
+#endif
gdouble norm_x;
gdouble norm_y;
gdouble r;
diff --git a/gst/geometrictransform/gsttunnel.c b/gst/geometrictransform/gsttunnel.c
index 861a911ca..3bda98a6a 100644
--- a/gst/geometrictransform/gsttunnel.c
+++ b/gst/geometrictransform/gsttunnel.c
@@ -82,7 +82,9 @@ tunnel_map (GstGeometricTransform * gt, gint x, gint y, gdouble * in_x,
gdouble * in_y)
{
GstCircleGeometricTransform *cgt = GST_CIRCLE_GEOMETRIC_TRANSFORM_CAST (gt);
+#ifndef GST_DISABLE_GST_DEBUG
GstTunnel *tunnel = GST_TUNNEL_CAST (gt);
+#endif
gdouble norm_x, norm_y;
gdouble width = gt->width;