Mercurial > mplayer.hg
changeset 25228:475c6659f31c
Do not queue empty cmd.
author | ulion |
---|---|
date | Sun, 02 Dec 2007 15:53:33 +0000 |
parents | 75837c33484b |
children | 4f611a555224 |
files | input/input.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/input/input.c Sun Dec 02 15:46:44 2007 +0000 +++ b/input/input.c Sun Dec 02 15:53:33 2007 +0000 @@ -1248,7 +1248,7 @@ 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;