diff options
author | wm4 <wm4@nowhere> | 2015-05-02 16:38:38 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-02 16:38:38 +0200 |
commit | 15d8cf7fa2b17d3e7d4376242b35c9edcec896b7 (patch) | |
tree | ff1f3633aef0af6f69c8396d5d9c818e2e986b4d /player | |
parent | f509a2badb80f9d80ad72ae219b47612cc054218 (diff) | |
download | mpv-15d8cf7fa2b17d3e7d4376242b35c9edcec896b7.tar.bz2 mpv-15d8cf7fa2b17d3e7d4376242b35c9edcec896b7.tar.xz |
screenshots: create screenshot dir
Minor user convenience.
Diffstat (limited to 'player')
-rw-r--r-- | player/screenshot.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/player/screenshot.c b/player/screenshot.c index 1db1d95996..63db569afb 100644 --- a/player/screenshot.c +++ b/player/screenshot.c @@ -286,6 +286,8 @@ static char *gen_fname(screenshot_ctx *ctx, const char *file_ext) dir = mp_get_user_path(t, ctx->mpctx->global, dir); fname = mp_path_join(NULL, bstr0(dir), bstr0(fname)); talloc_free(t); + + mp_mkdirp(dir); } if (!mp_path_exists(fname)) |