Mercurial > mplayer.hg
diff gui/win32/interface.c @ 33696:24d919fb6778
Don't let MPlayer directly call user interface functions.
Provide the necessary actions for MPlayer commands by guiGetEvent type
guiRunCommand instead. That way, access is possible through the official
interface function.
author | ib |
---|---|
date | Wed, 29 Jun 2011 15:22:22 +0000 |
parents | 60093217cb01 |
children | c919fb3d2531 |
line wrap: on
line diff
--- a/gui/win32/interface.c Wed Jun 29 14:31:17 2011 +0000 +++ b/gui/win32/interface.c Wed Jun 29 15:22:22 2011 +0000 @@ -384,11 +384,6 @@ mygui->startplay(mygui); } -void uiStop(void) -{ - guiGetEvent(guiSetState, (void *) GUI_STOP); -} - void uiSetFileName(char *dir, char *name, int type) { if(!name) return; @@ -651,6 +646,15 @@ exit_player(EXIT_QUIT); return 1; } + case MP_CMD_PLAY_TREE_STEP: + guiSetEvent(evNext); + break; + case -MP_CMD_PLAY_TREE_STEP: + guiSetEvent(evPrev); + break; + case MP_CMD_STOP: + guiSetEvent(evStop); + break; default: break; }