geometrictransform: Fix build with debugging disabled
authorThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 10 Sep 2010 13:29:38 +0000 (10:29 -0300)
committerThiago Santos <thiago.sousa.santos@collabora.co.uk>
Fri, 10 Sep 2010 13:29:38 +0000 (10:29 -0300)
Add some ifdefs to prevent build failures due to unused
variables

gst/geometrictransform/gstfisheye.c
gst/geometrictransform/gsttunnel.c

index a11fca2..39be190 100644 (file)
@@ -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;
index 861a911..3bda98a 100644 (file)
@@ -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;