From 28fc13977e740769d11b17165016559505187486 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 9 Sep 2014 20:58:26 +0200 Subject: terminal-unix: move to thread Do terminal input with a thread, instead of using the central select() loop. This also changes some details how SIGTERM is handled. Part of my crusade against mp_input_add_fd(). --- player/playloop.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'player') diff --git a/player/playloop.c b/player/playloop.c index a06165dfce..d6451083ac 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -961,9 +961,6 @@ void run_playloop(struct MPContext *mpctx) handle_force_window(mpctx, false); execute_queued_seek(mpctx); - - if (mpctx->opts->use_terminal) - getch2_poll(); } // Waiting for the slave master to send us a new file to play. @@ -989,7 +986,5 @@ void idle_loop(struct MPContext *mpctx) mp_process_input(mpctx); mp_wait_events(mpctx, mpctx->sleeptime); mpctx->sleeptime = 100.0; - if (mpctx->opts->use_terminal) - getch2_poll(); } } -- cgit v1.2.3