From 77ec83e351ca7218464f8f77a711520d68fa2e5d Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Tue, 29 Apr 2008 15:12:19 +0300 Subject: Add a context for mp_fifo Store data in an allocated context and take it as an argument instead of using static variables. --- command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'command.c') diff --git a/command.c b/command.c index fb34b8abbe..1c2e159bb1 100644 --- a/command.c +++ b/command.c @@ -3074,7 +3074,7 @@ int run_command(MPContext *mpctx, mp_cmd_t *cmd) break; case MP_CMD_KEYDOWN_EVENTS: - mplayer_put_key(cmd->args[0].v.i); + mplayer_put_key(mpctx->key_fifo, cmd->args[0].v.i); break; case MP_CMD_SET_MOUSE_POS:{ -- cgit v1.2.3