mirror of
https://github.com/mpv-player/mpv.git
synced 2024-09-20 12:02:23 +02:00
mplayer: fix track language display
This caused e.g. "--alang=" (without anything following) to be printed in the terminal output when the file specified no language for the track. Introduced by commit 9085b8.
This commit is contained in:
parent
5d5ddb2ad0
commit
2b728da8c8
@ -910,7 +910,8 @@ static struct track *add_stream_track(struct MPContext *mpctx,
|
||||
track->demuxer_id)
|
||||
};
|
||||
stream_control(track->demuxer->stream, STREAM_CTRL_GET_LANG, &req);
|
||||
track->lang = talloc_strdup(track, req.name);
|
||||
if (req.name[0])
|
||||
track->lang = talloc_strdup(track, req.name);
|
||||
}
|
||||
|
||||
return track;
|
||||
|
Loading…
Reference in New Issue
Block a user