summaryrefslogtreecommitdiffstats
path: root/player/playloop.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-09-09 20:58:26 +0200
committerwm4 <wm4@nowhere>2014-09-10 00:48:12 +0200
commit28fc13977e740769d11b17165016559505187486 (patch)
tree1ed04f39b6f852d0c9c9e9142094bf3738624854 /player/playloop.c
parentd0b525121af63cc8cf19f2207a5ef384c78e61f6 (diff)
downloadmpv-28fc13977e740769d11b17165016559505187486.tar.bz2
mpv-28fc13977e740769d11b17165016559505187486.tar.xz
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().
Diffstat (limited to 'player/playloop.c')
-rw-r--r--player/playloop.c5
1 files changed, 0 insertions, 5 deletions
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();
}
}