1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00

loadfile: unescape display filenames

This makes OSD more usable when the filename contains non-ASCII characters.
This commit is contained in:
Nikolai Vavilov 2025-02-03 00:16:20 +02:00 committed by Kacper Michajłow
parent 6f0a077d9b
commit c0366cfa42

View File

@ -836,6 +836,8 @@ int mp_add_external_file(struct MPContext *mpctx, char *filename,
char *disp_filename = filename;
if (strncmp(disp_filename, "memory://", 9) == 0)
disp_filename = "memory://"; // avoid noise
else if (mp_is_url(bstr0(disp_filename)))
mp_url_unescape_inplace(disp_filename);
struct demuxer_params params = {
.is_top_level = true,