Mercurial > mplayer.hg
diff command.c @ 34339:f05c75392897
Enable gui slave commands.
Allow sending the GUI skin messages which enables operating the GUI
with a remote control.
Only messages defined in current skin window will be executed, i.e.
only messages that could result from mouse clicks as well.
author | ib |
---|---|
date | Sun, 11 Dec 2011 14:43:16 +0000 |
parents | 87a1b3a11b33 |
children | 206264c532f5 |
line wrap: on
line diff
--- a/command.c Sat Dec 10 20:55:31 2011 +0000 +++ b/command.c Sun Dec 11 14:43:16 2011 +0000 @@ -3511,6 +3511,11 @@ break; default: +#ifdef CONFIG_GUI + if (use_gui && cmd->id == MP_CMD_GUI) + gui(GUI_RUN_MESSAGE, cmd->args[0].v.s); + else +#endif mp_msg(MSGT_CPLAYER, MSGL_V, "Received unknown cmd %s\n", cmd->name); }