summaryrefslogtreecommitdiffstats
path: root/screenshot.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-10-20 23:58:02 +0200
committerwm4 <wm4@nowhere>2012-10-24 21:56:34 +0200
commit48ce4ab7f9259977f426d52b51601a54dbe15465 (patch)
tree2dae5a400d4fbb7da58a2134c28529ac9f9aeb6e /screenshot.c
parent11ed093182f29c796ba6fd08f6c5c80e8fdb9349 (diff)
downloadmpv-48ce4ab7f9259977f426d52b51601a54dbe15465.tar.bz2
mpv-48ce4ab7f9259977f426d52b51601a54dbe15465.tar.xz
screenshot: change "screenshot" input command
"screenshot" now maps to "screenshot subtitles" by default, instead of "screenshot video". Swap the argument order: the more useful argument should come first. Remove the compatibility aliases for numeric choices (e.g. "screenshot 1 0" won't work anymore).
Diffstat (limited to 'screenshot.c')
-rw-r--r--screenshot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/screenshot.c b/screenshot.c
index c60b17649b..bfc86d5dce 100644
--- a/screenshot.c
+++ b/screenshot.c
@@ -293,7 +293,7 @@ static void vf_screenshot_callback(void *pctx, struct mp_image *image)
screenshot_ctx *ctx = mpctx->screenshot_ctx;
screenshot_save(mpctx, image, ctx->mode);
if (ctx->each_frame)
- screenshot_request(mpctx, 0, ctx->mode);
+ screenshot_request(mpctx, ctx->mode, false);
}
static bool force_vf(struct MPContext *mpctx)
@@ -309,7 +309,7 @@ static bool force_vf(struct MPContext *mpctx)
return false;
}
-void screenshot_request(struct MPContext *mpctx, bool each_frame, int mode)
+void screenshot_request(struct MPContext *mpctx, int mode, bool each_frame)
{
if (mpctx->video_out && mpctx->video_out->config_ok) {
screenshot_ctx *ctx = mpctx->screenshot_ctx;
@@ -366,5 +366,5 @@ void screenshot_flip(struct MPContext *mpctx)
if (ctx->using_vf_screenshot)
return;
- screenshot_request(mpctx, 0, ctx->mode);
+ screenshot_request(mpctx, ctx->mode, false);
}