[MPlayer-cvslog] r35387 - trunk/input/input.c

reimar subversion at mplayerhq.hu
Sat Nov 10 13:38:54 CET 2012


Author: reimar
Date: Sat Nov 10 13:38:54 2012
New Revision: 35387

Log:
Make code slightly easier to read.

Modified:
   trunk/input/input.c

Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c	Sat Nov 10 13:33:14 2012	(r35386)
+++ trunk/input/input.c	Sat Nov 10 13:38:54 2012	(r35387)
@@ -1906,8 +1906,8 @@ static int mp_input_print_cmd_list(m_opt
  */
 int
 mp_input_check_interrupt(int time) {
-  mp_cmd_t* cmd;
-  if((cmd = mp_input_get_cmd(time,0,1)) == NULL)
+  mp_cmd_t *cmd = mp_input_get_cmd(time,0,1);
+  if (!cmd)
     return 0;
   switch(cmd->id) {
   case MP_CMD_QUIT:


More information about the MPlayer-cvslog mailing list