diff options
Diffstat (limited to 'stream/stream_file.c')
-rw-r--r-- | stream/stream_file.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/stream/stream_file.c b/stream/stream_file.c index dc85314f71..1e9f372ba4 100644 --- a/stream/stream_file.c +++ b/stream/stream_file.c @@ -125,6 +125,10 @@ static int open_f(stream_t *stream, int mode) return STREAM_UNSUPPORTED; } + // "file://" prefix -> decode URL-style escapes + if (strlen(stream->url) > strlen(stream->path)) + mp_url_unescape_inplace(stream->path); + #if HAVE_DOS_PATHS // extract '/' from '/x:/path' if( filename[ 0 ] == '/' && filename[ 1 ] && filename[ 2 ] == ':' ) |