From 6eb167a17698506fc08f47594e133fa4e44afd3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 19 Jun 2009 16:21:28 +0100 Subject: Make build without warnings with debugging disabled --- ext/directfb/dfbvideosink.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'ext/directfb') diff --git a/ext/directfb/dfbvideosink.c b/ext/directfb/dfbvideosink.c index a6450a06..f48864d6 100644 --- a/ext/directfb/dfbvideosink.c +++ b/ext/directfb/dfbvideosink.c @@ -144,6 +144,7 @@ static void gst_dfbvideosink_surface_destroy (GstDfbVideoSink * dfbvideosink, static GstVideoSinkClass *parent_class = NULL; static GstBufferClass *surface_parent_class = NULL; +#ifndef GST_DISABLE_GST_DEBUG static const char * gst_dfbvideosink_get_format_name (DFBSurfacePixelFormat format) { @@ -192,6 +193,7 @@ gst_dfbvideosink_get_format_name (DFBSurfacePixelFormat format) return "UNKNOWN"; } } +#endif /* GST_DISABLE_GST_DEBUG */ /* Creates miniobject and our internal surface */ static GstDfbSurface * @@ -1945,7 +1947,7 @@ gst_dfbvideosink_navigation_send_event (GstNavigation * navigation, GstDfbVideoSink *dfbvideosink = GST_DFBVIDEOSINK (navigation); GstEvent *event; GstVideoRectangle src, dst, result; - double x, y; + double x, y, old_x, old_y; GstPad *pad = NULL; src.w = GST_VIDEO_SINK_WIDTH (dfbvideosink); @@ -1959,8 +1961,8 @@ gst_dfbvideosink_navigation_send_event (GstNavigation * navigation, /* Our coordinates can be wrong here if we centered the video */ /* Converting pointer coordinates to the non scaled geometry */ - if (gst_structure_get_double (structure, "pointer_x", &x)) { - double old_x = x; + if (gst_structure_get_double (structure, "pointer_x", &old_x)) { + x = old_x; if (x >= result.x && x <= (result.x + result.w)) { x -= result.x; @@ -1973,8 +1975,8 @@ gst_dfbvideosink_navigation_send_event (GstNavigation * navigation, "coordinate from %f to %f", old_x, x); gst_structure_set (structure, "pointer_x", G_TYPE_DOUBLE, x, NULL); } - if (gst_structure_get_double (structure, "pointer_y", &y)) { - double old_y = y; + if (gst_structure_get_double (structure, "pointer_y", &old_y)) { + y = old_y; if (y >= result.y && y <= (result.y + result.h)) { y -= result.y; -- cgit v1.2.1