summaryrefslogtreecommitdiffstats
path: root/player/screenshot.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-10-05 00:16:46 +0200
committerwm4 <wm4@nowhere>2020-10-05 00:16:46 +0200
commit39f4fd0dc7e025af5c653e43dc05e71455d99570 (patch)
treea8c55afec447edfaf34e7e8ea177b44e072fd46c /player/screenshot.c
parent34b8adc4562f38374d8eb981b002f268dc5640d4 (diff)
downloadmpv-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.c3
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;