Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
20155:c903e0d80f02 | 20156:42b46a42f83b |
---|---|
136 } | 136 } |
137 --chapter; | 137 --chapter; |
138 } | 138 } |
139 /* didn't find a chapter ??? */ | 139 /* didn't find a chapter ??? */ |
140 return chapter; | 140 return chapter; |
141 } | |
142 | |
143 int dvd_lang_from_aid(stream_t *stream, int id) { | |
144 dvd_priv_t *d; | |
145 if (!stream) return 0; | |
146 d = stream->priv; | |
147 if (!d) return 0; | |
148 int i; | |
149 for(i=0;i<d->nr_of_channels;i++) { | |
150 if(d->audio_streams[i].id==id) | |
151 return d->audio_streams[i].language; | |
152 } | |
153 return 0; | |
141 } | 154 } |
142 | 155 |
143 int dvd_aid_from_lang(stream_t *stream, unsigned char* lang) { | 156 int dvd_aid_from_lang(stream_t *stream, unsigned char* lang) { |
144 dvd_priv_t *d=stream->priv; | 157 dvd_priv_t *d=stream->priv; |
145 int code,i; | 158 int code,i; |