diff options
author | wm4 <wm4@nowhere> | 2020-10-05 00:16:46 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-10-05 00:16:46 +0200 |
commit | 39f4fd0dc7e025af5c653e43dc05e71455d99570 (patch) | |
tree | a8c55afec447edfaf34e7e8ea177b44e072fd46c /player/screenshot.c | |
parent | 34b8adc4562f38374d8eb981b002f268dc5640d4 (diff) | |
download | mpv-39f4fd0dc7e025af5c653e43dc05e71455d99570.tar.bz2 mpv-39f4fd0dc7e025af5c653e43dc05e71455d99570.tar.xz |
screenshot: add --screenshot-sw option
Probably worthless. As usual, the manpage dumps all the subtle
differences due to implementation details on the user.
Diffstat (limited to 'player/screenshot.c')
-rw-r--r-- | player/screenshot.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/player/screenshot.c b/player/screenshot.c index e731e02e21..f0af132efb 100644 --- a/player/screenshot.c +++ b/player/screenshot.c @@ -346,7 +346,8 @@ static struct mp_image *screenshot_get(struct MPContext *mpctx, int mode, .high_bit_depth = high_depth && mpctx->opts->screenshot_image_opts->high_bit_depth, }; - vo_control(mpctx->video_out, VOCTRL_SCREENSHOT, &ctrl); + if (!mpctx->opts->screenshot_sw) + vo_control(mpctx->video_out, VOCTRL_SCREENSHOT, &ctrl); image = ctrl.res; if (image) need_add_subs = false; |