From 25d4ae74f1dbddf99b147df0887d6810d34e36dd Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 19 Dec 2013 21:31:27 +0100 Subject: Rename getch2....c/h to terminal....c/h "getch2" really tells nothing about what the heck this code does. It'd be even worse when moving the rest of terminal handling code there. --- player/playloop.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'player/playloop.c') diff --git a/player/playloop.c b/player/playloop.c index a018088cfc..971895b6a2 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -33,6 +33,7 @@ #include "common/playlist.h" #include "input/input.h" +#include "osdep/terminal.h" #include "osdep/timer.h" #include "audio/mixer.h" @@ -1310,6 +1311,8 @@ void run_playloop(struct MPContext *mpctx) handle_force_window(mpctx, false); execute_queued_seek(mpctx); + + getch2_poll(); } // Waiting for the slave master to send us a new file to play. @@ -1339,5 +1342,6 @@ void idle_loop(struct MPContext *mpctx) run_command(mpctx, cmd); mp_cmd_free(cmd); mp_flush_events(mpctx); + getch2_poll(); } } -- cgit v1.2.3