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:
nicodvb 2004-11-15 20:56:10 +00:00
parent 1f6fb814b2
commit f7a6075374
1 changed files with 11 additions and 0 deletions

View File

@ -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;
}
}