mirror of https://github.com/mpv-player/mpv
Cosmetics
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20182 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
280c746919
commit
aa5a9bc123
|
@ -3936,8 +3936,7 @@ demux_mkv_get_sub_lang(demuxer_t *demuxer, int track_num, char *lang,
|
|||
{
|
||||
mkv_demuxer_t *mkv_d = (mkv_demuxer_t *) demuxer->priv;
|
||||
mkv_track_t *track = demux_mkv_find_track_by_num (mkv_d, track_num, MATROSKA_TRACK_SUBTITLE);
|
||||
if ((track->language != NULL) &&
|
||||
strcmp(track->language, "und"))
|
||||
if (track->language && strcmp(track->language, "und"))
|
||||
strlcpy(lang, track->language, maxlen);
|
||||
}
|
||||
|
||||
|
@ -3957,8 +3956,7 @@ demux_mkv_get_audio_lang(demuxer_t *demuxer, int track_num, char *lang,
|
|||
{
|
||||
mkv_demuxer_t *mkv_d = (mkv_demuxer_t *) demuxer->priv;
|
||||
mkv_track_t *track = demux_mkv_find_track_by_num (mkv_d, track_num, MATROSKA_TRACK_AUDIO);
|
||||
if ((track->language != NULL) &&
|
||||
strcmp(track->language, "und"))
|
||||
if (track->language && strcmp(track->language, "und"))
|
||||
strlcpy(lang, track->language, maxlen);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue