From 04c02796bd371e65f81a92b853658b8fbadb7ad5 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 9 May 2015 15:26:47 +0200 Subject: path: make mp_path_join accept normal C strings Instead of bstr. Most callers of this function do not need bstr. The bstr version of this function is now mp_path_join_bstr(). --- player/screenshot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/screenshot.c') diff --git a/player/screenshot.c b/player/screenshot.c index 0449dfb5a1..f30ccf9581 100644 --- a/player/screenshot.c +++ b/player/screenshot.c @@ -284,7 +284,7 @@ static char *gen_fname(screenshot_ctx *ctx, const char *file_ext) if (dir && dir[0]) { void *t = fname; dir = mp_get_user_path(t, ctx->mpctx->global, dir); - fname = mp_path_join(NULL, bstr0(dir), bstr0(fname)); + fname = mp_path_join(NULL, dir, fname); talloc_free(t); mp_mkdirp(dir); -- cgit v1.2.3