diff options
author | wm4 <wm4@nowhere> | 2013-07-02 14:00:24 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-07-02 14:00:24 +0200 |
commit | 70a8079c8e0109eb89db3f3278be2a75a710c95e (patch) | |
tree | b96d12490af3ca5e0ed95c1952ea89d0df5ac5e7 /core/command.c | |
parent | 451f6788cea2f7a90badcf2fb7e1e3679fa513cb (diff) | |
download | mpv-70a8079c8e0109eb89db3f3278be2a75a710c95e.tar.bz2 mpv-70a8079c8e0109eb89db3f3278be2a75a710c95e.tar.xz |
core: remove mp_fifo indirection
For some reason mp_fifo specifically handled double clicks, and other
than that was a pointless wrapper around input.c functionality.
Move the double click handling into input.c, and get rid of mp_fifo. Add
some compatibility wrappers, because so much VO code uses these
functions. Where struct mp_fifo is still used it's just a casted
struct input_ctx.
Diffstat (limited to 'core/command.c')
-rw-r--r-- | core/command.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/command.c b/core/command.c index dec3ae9c9f..46e747cf2b 100644 --- a/core/command.c +++ b/core/command.c @@ -2431,7 +2431,7 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) break; case MP_CMD_KEYDOWN_EVENTS: - mplayer_put_key(mpctx->key_fifo, cmd->args[0].v.i); + mp_input_put_key(mpctx->input, cmd->args[0].v.i); break; case MP_CMD_ENABLE_INPUT_SECTION: |