summaryrefslogtreecommitdiffstats
path: root/player/screenshot.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-04-16 22:06:47 +0200
committerwm4 <wm4@nowhere>2015-04-16 22:06:47 +0200
commit547976633f41c245b9accd6906166bb450e13557 (patch)
tree596108aef2ebfdbb6e4cc1a270c3d57006d5a970 /player/screenshot.c
parent533b0c70e1f2cf5c1358c7147ae5546fcf1f6a64 (diff)
downloadmpv-547976633f41c245b9accd6906166bb450e13557.tar.bz2
mpv-547976633f41c245b9accd6906166bb450e13557.tar.xz
command: let screenshot_to_file command overwrite files
The old behavior does not make too much sense after all. If you don't want to file to be overwritten, the user can check this manually. This is a change in behavior - let's hope nobody actually relied on it.
Diffstat (limited to 'player/screenshot.c')
-rw-r--r--player/screenshot.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/player/screenshot.c b/player/screenshot.c
index ec01adffaa..3a1a41a4ca 100644
--- a/player/screenshot.c
+++ b/player/screenshot.c
@@ -370,11 +370,6 @@ void screenshot_to_file(struct MPContext *mpctx, const char *filename, int mode,
bool old_osd = ctx->osd;
ctx->osd = osd;
- if (mp_path_exists(filename)) {
- screenshot_msg(ctx, SMSG_ERR, "Screenshot: file '%s' already exists.",
- filename);
- goto end;
- }
char *ext = mp_splitext(filename, NULL);
if (ext)
opts.format = ext;