summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvd.c
diff options
context:
space:
mode:
authorptt <ptt@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-11 17:25:46 +0000
committerptt <ptt@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-10-11 17:25:46 +0000
commit68613bbee71c87fa321fff8827837d7ce4d02581 (patch)
tree41e05a922e802b55653031e42807be5aacc40082 /stream/stream_dvd.c
parentd0947a5bb7255ef357c35191260a5f1fc93d61a3 (diff)
downloadmpv-68613bbee71c87fa321fff8827837d7ce4d02581.tar.bz2
mpv-68613bbee71c87fa321fff8827837d7ce4d02581.tar.xz
added OSD audio switching visualization
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20162 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvd.c')
-rw-r--r--stream/stream_dvd.c13
1 files changed, 13 insertions, 0 deletions
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;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;