summaryrefslogtreecommitdiffstats
path: root/player
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-26 11:38:23 +0100
committerwm4 <wm4@nowhere>2015-01-26 11:38:23 +0100
commit9b8d3acc8b95771de2f2be2d687290f71979e458 (patch)
tree8f85a29e7db55a7dc81460af1dd832dd9599252c /player
parent96f7c96da02c235c0f4511f30ea81c45933bf881 (diff)
downloadmpv-9b8d3acc8b95771de2f2be2d687290f71979e458.tar.bz2
mpv-9b8d3acc8b95771de2f2be2d687290f71979e458.tar.xz
options: list correct default value for --screenshot-template
Make the default value part of the option metadata, instead of doing this in the screenshot code. Makes more sense with --list-options and the command.c option metadata properties.
Diffstat (limited to 'player')
-rw-r--r--player/screenshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/screenshot.c b/player/screenshot.c
index 702e2dd766..0f0ac72419 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, '%');