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

ulion subversion at mplayerhq.hu
Sun Dec 2 16:53:33 CET 2007


Author: ulion
Date: Sun Dec  2 16:53:33 2007
New Revision: 25256

Log:
Do not queue empty cmd.


Modified:
   trunk/input/input.c

Modified: trunk/input/input.c
==============================================================================
--- trunk/input/input.c	(original)
+++ trunk/input/input.c	Sun Dec  2 16:53:33 2007
@@ -1248,7 +1248,7 @@ static mp_cmd_t *read_events(int time, i
 
 int
 mp_input_queue_cmd(mp_cmd_t* cmd) {
-  if(cmd_queue_length  >= CMD_QUEUE_SIZE)
+  if(!cmd || cmd_queue_length  >= CMD_QUEUE_SIZE)
     return 0;
   cmd_queue[cmd_queue_end] = cmd;
   cmd_queue_end = (cmd_queue_end + 1) % CMD_QUEUE_SIZE;



More information about the MPlayer-cvslog mailing list