0
0
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:
wm4 2012-11-25 23:37:39 +01:00
parent 5d5ddb2ad0
commit 2b728da8c8

View File

@ -910,6 +910,7 @@ static struct track *add_stream_track(struct MPContext *mpctx,
track->demuxer_id)
};
stream_control(track->demuxer->stream, STREAM_CTRL_GET_LANG, &req);
if (req.name[0])
track->lang = talloc_strdup(track, req.name);
}