summaryrefslogtreecommitdiffstats
path: root/command.c
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-25 13:08:49 +0000
committerdiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-08-25 13:08:49 +0000
commit86354b25dd8f24b0bbe98281f0a0e9d32e8d6b3b (patch)
treeb4695d834bf981496f1d1d84e04d724074a570d3 /command.c
parent3c8b565e90c0381cce88529201033249d2e48d53 (diff)
downloadmpv-86354b25dd8f24b0bbe98281f0a0e9d32e8d6b3b.tar.bz2
mpv-86354b25dd8f24b0bbe98281f0a0e9d32e8d6b3b.tar.xz
Move button variable into the if () where it is actually used.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24174 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index 00ff83bd94..fc471b106f 100644
--- a/command.c
+++ b/command.c
@@ -2742,8 +2742,8 @@ int run_command(MPContext * mpctx, mp_cmd_t * cmd)
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
+ int button = -1;
&& dx > 0.0 && dy > 0.0) {
pointer_x = (int) (dx * (double) sh_video->disp_w);
pointer_y = (int) (dy * (double) sh_video->disp_h);