summaryrefslogtreecommitdiffstats
path: root/player/screenshot.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-12-21 17:59:38 +0100
committerwm4 <wm4@nowhere>2013-12-21 20:50:10 +0100
commit5beedf1967f93ad4edfb6d1dd2edf9f4660a5afe (patch)
treeebe5c9826ad5537c36ce0f8f096581078327e2de /player/screenshot.c
parent38342436cd59afd345595d83b329bc7c6ac3616f (diff)
downloadmpv-5beedf1967f93ad4edfb6d1dd2edf9f4660a5afe.tar.bz2
mpv-5beedf1967f93ad4edfb6d1dd2edf9f4660a5afe.tar.xz
image_writer: mp_msg conversions
Adds an awkward mp_log argument for error messages.
Diffstat (limited to 'player/screenshot.c')
-rw-r--r--player/screenshot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/player/screenshot.c b/player/screenshot.c
index d2879051b0..70a85bc80b 100644
--- a/player/screenshot.c
+++ b/player/screenshot.c
@@ -301,7 +301,7 @@ static void screenshot_save(struct MPContext *mpctx, struct mp_image *image)
char *filename = gen_fname(ctx, image_writer_file_ext(opts));
if (filename) {
screenshot_msg(ctx, SMSG_OK, "Screenshot: '%s'", filename);
- if (!write_image(image, opts, filename))
+ if (!write_image(image, opts, filename, mpctx->log))
screenshot_msg(ctx, SMSG_ERR, "Error writing screenshot!");
talloc_free(filename);
}
@@ -354,7 +354,7 @@ void screenshot_to_file(struct MPContext *mpctx, const char *filename, int mode,
goto end;
}
screenshot_msg(ctx, SMSG_OK, "Screenshot: '%s'", filename);
- if (!write_image(image, &opts, filename))
+ if (!write_image(image, &opts, filename, mpctx->log))
screenshot_msg(ctx, SMSG_ERR, "Error writing screenshot!");
talloc_free(image);