Mercurial > mplayer.hg
changeset 35432:a545e4994460
Check return value to avoid segmentation fault.
author | ib |
---|---|
date | Fri, 30 Nov 2012 12:22:45 +0000 |
parents | 20c90da2ba0d |
children | 208bfdd26819 |
files | gui/ui/actions.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/gui/ui/actions.c Fri Nov 30 12:17:29 2012 +0000 +++ b/gui/ui/actions.c Fri Nov 30 12:22:45 2012 +0000 @@ -89,9 +89,11 @@ if (guiInfo.Playing == GUI_PLAY) { mp_cmd_t *cmd = calloc(1, sizeof(*cmd)); + if (cmd) { cmd->id = MP_CMD_PAUSE; cmd->name = strdup("pause"); mp_input_queue_cmd(cmd); + } } else guiInfo.Playing = GUI_PLAY; }