diff mplayer.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 d2a41814c879
children ce8b1d7d54fe
line wrap: on
line diff
--- a/mplayer.c	Sat Dec 10 20:55:31 2011 +0000
+++ b/mplayer.c	Sun Dec 11 14:43:16 2011 +0000
@@ -3058,6 +3058,9 @@
             gui(GUI_HANDLE_EVENTS, 0);
             gui(GUI_REDRAW, 0);
             if ((cmd = mp_input_get_cmd(0, 0, 0)) != NULL) {
+                if (cmd->id == MP_CMD_GUI)
+                    gui(GUI_RUN_MESSAGE, cmd->args[0].v.s);
+                else
                 gui(GUI_RUN_COMMAND, (void *)cmd->id);
                 mp_cmd_free(cmd);
             }