mpv.net
mpv.net copied to clipboard
fix: only strip inline # comment when preceded by whitespace in mpv.conf parser
The conf parser in Player.Conf stripped everything from the first # onward whenever a value contained # but did not start with it. This corrupted legitimate values such as script-opts=key=val#suffix or color hex codes.
mpv's own conf syntax treats # as a comment only when preceded by whitespace. Changed the check to look for " #" (space then hash) so embedded # characters in values are preserved.