mirror of https://github.com/mpv-player/mpv
added language identifier (if any) to the caller during probing phase
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13958 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
1f6fb814b2
commit
f7a6075374
|
@ -1967,7 +1967,18 @@ static int ts_parse(demuxer_t *demuxer , ES_stream_t *es, unsigned char *packet,
|
|||
}
|
||||
else
|
||||
{
|
||||
uint8_t *lang = NULL;
|
||||
tss->type = es->type;
|
||||
|
||||
if(is_audio)
|
||||
lang = pid_lang_from_pmt(priv, es->pid);
|
||||
if(lang != NULL)
|
||||
{
|
||||
memcpy(es->lang, lang, 3);
|
||||
es->lang[3] = 0;
|
||||
}
|
||||
else
|
||||
es->lang[0] = 0;
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue