diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-01-16 00:35:12 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-01-16 22:16:28 +0100 |
commit | 60755108a61d7ce2f5ff07226a689bde552be008 (patch) | |
tree | f6e8d54efcf29fab0f4805ba887c9613d2f28a87 /core | |
parent | 1bbcb15d8ea3c150850e8d2b65b7f283e4d61927 (diff) | |
download | mpv-60755108a61d7ce2f5ff07226a689bde552be008.tar.bz2 mpv-60755108a61d7ce2f5ff07226a689bde552be008.tar.xz |
input: enqueue commands to the end of the queue
`mp_input_queue_cmd` erroneusly added commands to the head of the queue
resulting in LIFO behaviour instead of the intended FIFO.
Diffstat (limited to 'core')
-rw-r--r-- | core/input/input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/input/input.c b/core/input/input.c index 1ee1ff909a..1eedadf039 100644 --- a/core/input/input.c +++ b/core/input/input.c @@ -1515,7 +1515,7 @@ int mp_input_queue_cmd(struct input_ctx *ictx, mp_cmd_t *cmd) ictx->got_new_events = true; if (!cmd) return 0; - queue_add(&ictx->control_cmd_queue, cmd, true); + queue_add(&ictx->control_cmd_queue, cmd, false); return 1; } |