[MPlayer-dev-eng] [PATCH] dvdnav part 3 - patch 5
Nico Sabbi
nicola_sabbi at fastwebnet.it
Thu Nov 23 22:12:33 CET 2006
Ötvös Attila wrote:
>--- mplayer.c 2006-11-22 12:29:50.000000000 +0100
>+++ mplayer.c 2006-11-22 14:37:21.000000000 +0100
>@@ -3067,6 +3067,7 @@
> // DVDNAV *FIXME*
> #ifdef USE_DVDNAV
> static void mp_dvdnav_handle(void) {
>+int dvdnav_audioid = mp_dvdnav_audio(stream);
> mp_highlight_t highlight;
> mp_dvdnav_highlight(stream,&highlight);
>
>@@ -3074,6 +3075,19 @@
> 1,0x7f,0x7f); /* set box button area & on */
> vo_osd_changed(OSDTYPE_DVDNAV);
>
>+if (sh_audio) {
>+ int current_id = demuxer->audio->id;
>+ int audio_id = demuxer_switch_audio(demuxer, dvdnav_audioid + 128);
>+ if(audio_id > -1 && demuxer->audio->id != current_id) {
>+ sh_audio_t *sh2;
>+ uninit_player(INITED_AO | INITED_ACODEC);
>+ sh2 = demuxer->a_streams[demuxer->audio->id];
>+ if(sh2) {
>+ sh2->ds = demuxer->audio;
>+ sh_audio = sh2;
>+ reinit_audio_chain();}
>+ }
>+ }
> }
>
>
>
what's this patch supposed to do?
More information about the MPlayer-dev-eng
mailing list