diff options
author | wm4 <wm4@nowhere> | 2013-02-24 22:52:47 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-02-26 01:55:52 +0100 |
commit | 90425522091ecd8aa1e91868e519c3ac62dad4f0 (patch) | |
tree | 19e3173e34f197c293fea6843f7ffe3572e6cca3 /core/command.c | |
parent | f47ead1509bd63785a0b6deb67e05e02b56fc474 (diff) | |
download | mpv-90425522091ecd8aa1e91868e519c3ac62dad4f0.tar.bz2 mpv-90425522091ecd8aa1e91868e519c3ac62dad4f0.tar.xz |
screenshot: show a message on each screenshot taken
The message reads: "Screenshot: filename", where the filename is what
mpv passes to fopen(). It will also show error messages when saving the
screenshot fails.
Diffstat (limited to 'core/command.c')
-rw-r--r-- | core/command.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/command.c b/core/command.c index cb6843eab4..8cd9ed07d1 100644 --- a/core/command.c +++ b/core/command.c @@ -2166,7 +2166,8 @@ void run_command(MPContext *mpctx, mp_cmd_t *cmd) } case MP_CMD_SCREENSHOT: - screenshot_request(mpctx, cmd->args[0].v.i, cmd->args[1].v.i); + screenshot_request(mpctx, cmd->args[0].v.i, cmd->args[1].v.i, + !!(cmd->on_osd & MP_ON_OSD_MSG)); break; case MP_CMD_RUN: |