diff options
author | wm4 <wm4@nowhere> | 2013-12-21 17:59:38 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-12-21 20:50:10 +0100 |
commit | 5beedf1967f93ad4edfb6d1dd2edf9f4660a5afe (patch) | |
tree | ebe5c9826ad5537c36ce0f8f096581078327e2de /player | |
parent | 38342436cd59afd345595d83b329bc7c6ac3616f (diff) | |
download | mpv-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')
-rw-r--r-- | player/screenshot.c | 4 |
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); |