[MPlayer-cvslog] r35526 - trunk/gui/ui/actions.c
ib
subversion at mplayerhq.hu
Fri Nov 30 13:22:45 CET 2012
Author: ib
Date: Fri Nov 30 13:22:45 2012
New Revision: 35526
Log:
Check return value to avoid segmentation fault.
Modified:
trunk/gui/ui/actions.c
Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c Fri Nov 30 13:17:29 2012 (r35525)
+++ trunk/gui/ui/actions.c Fri Nov 30 13:22:45 2012 (r35526)
@@ -89,9 +89,11 @@ void uiPause(void)
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;
}
More information about the MPlayer-cvslog
mailing list