Skip to content

Commit b388792

Browse files
committed
misc/path_utils: don't normalize -
This avoids returning $PWD/- as path and stream-open-filename when playing from standard input.
1 parent 3ae5521 commit b388792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/path_utils.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ char *mp_normalize_path(void *talloc_ctx, const char *path)
159159
if (!path)
160160
return NULL;
161161

162-
if (mp_is_url(bstr0(path)))
162+
if (mp_is_url(bstr0(path)) || !strcmp(path, "-"))
163163
return talloc_strdup(talloc_ctx, path);
164164

165165
void *tmp = talloc_new(NULL);

0 commit comments

Comments
 (0)