diff options
Diffstat (limited to 'mpvcore/player/screenshot.c')
-rw-r--r-- | mpvcore/player/screenshot.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mpvcore/player/screenshot.c b/mpvcore/player/screenshot.c index bf7a0ce9ee..d719495f9e 100644 --- a/mpvcore/player/screenshot.c +++ b/mpvcore/player/screenshot.c @@ -233,7 +233,10 @@ static char *create_fname(struct MPContext *mpctx, char *template, } res = talloc_strdup_append(res, template); - return talloc_asprintf_append(res, ".%s", file_ext); + res = talloc_asprintf_append(res, ".%s", file_ext); + char *fname = mp_get_user_path(NULL, res); + talloc_free(res); + return fname; error_exit: talloc_free(res); |