Mercurial > mplayer.hg
diff stream/stream_dvd.c @ 20156:42b46a42f83b
added OSD audio switching visualization
author | ptt |
---|---|
date | Wed, 11 Oct 2006 17:25:46 +0000 |
parents | 94c1edffdf2f |
children | 7297d76977be |
line wrap: on
line diff
--- a/stream/stream_dvd.c Wed Oct 11 15:57:51 2006 +0000 +++ b/stream/stream_dvd.c Wed Oct 11 17:25:46 2006 +0000 @@ -140,6 +140,19 @@ return chapter; } +int dvd_lang_from_aid(stream_t *stream, int id) { + dvd_priv_t *d; + if (!stream) return 0; + d = stream->priv; + if (!d) return 0; + int i; + for(i=0;i<d->nr_of_channels;i++) { + if(d->audio_streams[i].id==id) + return d->audio_streams[i].language; + } + return 0; +} + int dvd_aid_from_lang(stream_t *stream, unsigned char* lang) { dvd_priv_t *d=stream->priv; int code,i;