diff options
author | wm4 <wm4@nowhere> | 2014-02-06 16:49:50 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-02-10 00:14:52 +0100 |
commit | 8437356b6c615ac93f49fe122a591a229722dbe8 (patch) | |
tree | ed36dbe45b84eccbf2eac3d26431dca462e00709 /player/playloop.c | |
parent | 20fbe2fb8c1b3b4f5b08dd529ac1897f24c88a95 (diff) | |
download | mpv-8437356b6c615ac93f49fe122a591a229722dbe8.tar.bz2 mpv-8437356b6c615ac93f49fe122a591a229722dbe8.tar.xz |
options: add --no-terminal switch
Mostly useful for internal reasons. This code will be enabled by
default if mpv is started via the client API.
Diffstat (limited to 'player/playloop.c')
-rw-r--r-- | player/playloop.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/player/playloop.c b/player/playloop.c index 4faa3ba01d..e28d387801 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -1300,7 +1300,8 @@ void run_playloop(struct MPContext *mpctx) execute_queued_seek(mpctx); - getch2_poll(); + if (mpctx->opts->use_terminal) + getch2_poll(); } // Waiting for the slave master to send us a new file to play. @@ -1330,6 +1331,7 @@ void idle_loop(struct MPContext *mpctx) run_command(mpctx, cmd); mp_cmd_free(cmd); mp_flush_events(mpctx); - getch2_poll(); + if (mpctx->opts->use_terminal) + getch2_poll(); } } |