summaryrefslogtreecommitdiffstats
path: root/stream
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
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')
-rw-r--r--stream/stream_dvd.c13
-rw-r--r--stream/stream_dvd.h1
2 files changed, 14 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;
diff --git a/stream/stream_dvd.h b/stream/stream_dvd.h
index 4968e752a8..1a2b314f35 100644
--- a/stream/stream_dvd.h
+++ b/stream/stream_dvd.h
@@ -45,6 +45,7 @@ typedef struct {
} dvd_priv_t;
int dvd_number_of_subs(stream_t *stream);
+int dvd_lang_from_aid(stream_t *stream, int id);
int dvd_lang_from_sid(stream_t *stream, int id);
int dvd_aid_from_lang(stream_t *stream, unsigned char* lang);
int dvd_sid_from_lang(stream_t *stream, unsigned char* lang);