From 68613bbee71c87fa321fff8827837d7ce4d02581 Mon Sep 17 00:00:00 2001 From: ptt Date: Wed, 11 Oct 2006 17:25:46 +0000 Subject: added OSD audio switching visualization git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20162 b3059339-0415-0410-9bf9-f77b7e298cf2 --- stream/stream_dvd.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'stream/stream_dvd.c') diff --git a/stream/stream_dvd.c b/stream/stream_dvd.c index c3bdb0b3df..030343fb56 100644 --- a/stream/stream_dvd.c +++ b/stream/stream_dvd.c @@ -140,6 +140,19 @@ int dvd_chapter_from_cell(dvd_priv_t* dvd,int title,int cell) 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;inr_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; -- cgit v1.2.3