From d603e73c24d6d7ad08a54c10d16c83d93b01a007 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 2 Jul 2013 14:04:36 +0200 Subject: core: cleanup more mp_fifo leftovers Now only the OSX and Wayland parts are using this. --- osdep/getch2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'osdep/getch2.c') diff --git a/osdep/getch2.c b/osdep/getch2.c index ae6a04f389..0e58b53a4d 100644 --- a/osdep/getch2.c +++ b/osdep/getch2.c @@ -54,7 +54,6 @@ #include #include "core/bstr.h" -#include "core/mp_fifo.h" #include "core/input/input.h" #include "core/input/keycodes.h" #include "getch2.h" @@ -156,7 +155,7 @@ void get_screen_size(void){ #endif } -bool getch2(struct mp_fifo *fifo) +bool getch2(struct input_ctx *input_ctx) { int retval = read(0, &getch2_buf[getch2_len], BUF_LEN-getch2_len); /* Return false on EOF to stop running select() on the FD, as it'd @@ -281,7 +280,7 @@ bool getch2(struct mp_fifo *fifo) getch2_len -= len; for (i = 0; i < getch2_len; i++) getch2_buf[i] = getch2_buf[len+i]; - mplayer_put_key(fifo, code); + mp_input_put_key(input_ctx, code); } return true; } -- cgit v1.2.3