changeset 24150:2ae4c179ea25

Fix unused variable warning when USE_DVDNAV is not defined.
author diego
date Sat, 25 Aug 2007 12:47:41 +0000
parents 35fcce39b121
children 8ceec73485d3
files command.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/command.c	Sat Aug 25 12:25:34 2007 +0000
+++ b/command.c	Sat Aug 25 12:47:41 2007 +0000
@@ -2736,12 +2736,13 @@
 	    break;
 
 	case MP_CMD_SET_MOUSE_POS:{
-		int button = -1, pointer_x, pointer_y;
+		int pointer_x, pointer_y;
 		double dx, dy;
 		pointer_x = cmd->args[0].v.i;
 		pointer_y = cmd->args[1].v.i;
 		rescale_input_coordinates(pointer_x, pointer_y, &dx, &dy);
 #ifdef USE_DVDNAV
+		int button = -1;
 		if (mpctx->stream->type == STREAMTYPE_DVDNAV
 		    && dx > 0.0 && dy > 0.0) {
 		    pointer_x = (int) (dx * (double) sh_video->disp_w);