0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

mplayer: output status line normally with --no-consolecontrols

In commit 0e07189, I made the status line always print a newline,
instead of cutting the output at 80 columns (or if stderr is a terminal,
whatever width the terminal reports). This is better in the case the
output goes into a log file or a pipe.

This caused problems for people who want to pipe raw video to mpv, so
change it again. (Not sure why they won't use FIFOs instead.)

Now output untrimmed lines if the slave mode flag is set, which makes
sense to do, too. The current slave mode is still on life support,
though.
This commit is contained in:
wm4 2013-05-27 22:19:47 +02:00
parent 41e6c922a5
commit 7ea5d085f9

View File

@ -1181,7 +1181,7 @@ static int get_term_width(void)
static void write_status_line(struct MPContext *mpctx, const char *line)
{
struct MPOpts *opts = &mpctx->opts;
if (!opts->consolecontrols) {
if (opts->slave_mode) {
mp_msg(MSGT_STATUSLINE, MSGL_STATUS, "%s\n", line);
} else if (erase_to_end_of_line) {
mp_msg(MSGT_STATUSLINE, MSGL_STATUS,