mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 22:49:58 +00:00
loadfile: take a const char* in match_lang
This commit is contained in:
parent
be34f52f72
commit
eb14dbff3e
@ -442,7 +442,7 @@ void add_demuxer_tracks(struct MPContext *mpctx, struct demuxer *demuxer)
|
||||
}
|
||||
|
||||
// Result numerically higher => better match. 0 == no match.
|
||||
static int match_lang(char **langs, char *lang)
|
||||
static int match_lang(char **langs, const char *lang)
|
||||
{
|
||||
if (!lang)
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user