diff options
-rw-r--r-- | options/options.c | 1 | ||||
-rw-r--r-- | player/screenshot.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/options/options.c b/options/options.c index 9551cef4bc..6691dcbecc 100644 --- a/options/options.c +++ b/options/options.c @@ -684,6 +684,7 @@ const struct MPOpts mp_default_opts = { .sub_fix_timing = 1, .sub_cp = "auto", .mkv_subtitle_preroll_secs = 1.0, + .screenshot_template = "shot%n", .hwdec_codecs = "h264,vc1,wmv3", diff --git a/player/screenshot.c b/player/screenshot.c index 4e22afc69d..21e189c0b2 100644 --- a/player/screenshot.c +++ b/player/screenshot.c @@ -129,7 +129,7 @@ static char *create_fname(struct MPContext *mpctx, char *template, struct tm *local_time = localtime(&raw_time); if (!template || *template == '\0') - template = "shot%n"; + return NULL; for (;;) { char *next = strchr(template, '%'); |