From e6885cb926ca05a23f54f1b44b250f6f981b4e46 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Wed, 8 Oct 2025 13:42:51 +0200 Subject: [PATCH] misc/path_utils: don't normalize - This fixes options like --audio-file=- and avoids returning $PWD/- as path and stream-open-filename when playing from standard input. It will also allow storing playlist filenames as normalized without checking for - at the caller. Fixes 23b57e9f7f. --- misc/path_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/path_utils.c b/misc/path_utils.c index 766626e82d..af56162aa6 100644 --- a/misc/path_utils.c +++ b/misc/path_utils.c @@ -159,7 +159,7 @@ char *mp_normalize_path(void *talloc_ctx, const char *path) if (!path) return NULL; - if (mp_is_url(bstr0(path))) + if (mp_is_url(bstr0(path)) || !strcmp(path, "-")) return talloc_strdup(talloc_ctx, path); void *tmp = talloc_new(NULL);