summaryrefslogtreecommitdiffstats
path: root/ci/build-mingw64.sh
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-10-01 19:33:05 -0500
committerDudemanguy <random342@airmail.cc>2023-10-07 02:41:27 +0000
commitacac614032529997e0a8d89d35a8613b505e04fb (patch)
treec18ed7c69a7ae03d15df3b9ac14663a906d6d86f /ci/build-mingw64.sh
parentda4f11803febd0e75d3d62a965e17731bd328506 (diff)
downloadmpv-acac614032529997e0a8d89d35a8613b505e04fb.tar.bz2
mpv-acac614032529997e0a8d89d35a8613b505e04fb.tar.xz
demux_playlist: use --metacode-codepage when parsing playlist files
It's 2023 and people don't use UTF-8 for their m3u, ini, etc. files. Well mpv already has the tools in place to try and guess other codepages, so we might as well use it I guess. This change is pretty awkward since we have to read line-by-line but mp_iconv_to_utf8 may sometimes allocate memory. So sometimes the bstr needs to be freed and sometimes not for every line. Also we need to make another copy of the line on the stack since splitting by tokens and such will mess up the original line which may possibly be allocated memory. The ugliness is mostly hidden in pl_free_line, but it's still weird. Fixes #10911.
Diffstat (limited to 'ci/build-mingw64.sh')
0 files changed, 0 insertions, 0 deletions