Mercurial > mplayer.hg
changeset 9038:db16deba0817
fix selected audio language in menu
author | arpi |
---|---|
date | Sun, 19 Jan 2003 21:45:55 +0000 |
parents | 00b831ed9582 |
children | b615c698e994 |
files | Gui/mplayer/gtk/menu.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/mplayer/gtk/menu.c Sun Jan 19 21:24:31 2003 +0000 +++ b/Gui/mplayer/gtk/menu.c Sun Jan 19 21:45:55 2003 +0000 @@ -379,13 +379,13 @@ DVDAudioLanguageMenu=AddSubMenu( DVDSubMenu,MSGTR_MENU_AudioLanguages ); if ( guiIntfStruct.DVD.nr_of_audio_channels ) { - char tmp[64]; int i, id = audio_id; + char tmp[64]; int i, id = guiIntfStruct.demuxer ? ((demuxer_t *)guiIntfStruct.demuxer)->audio->id : audio_id; for ( i=0;i < guiIntfStruct.DVD.nr_of_audio_channels;i++ ) { snprintf( tmp,64,"%s - %s %s",GetLanguage( guiIntfStruct.DVD.audio_streams[i].language ), ChannelTypes[ guiIntfStruct.DVD.audio_streams[i].type ], ChannelNumbers[ guiIntfStruct.DVD.audio_streams[i].channels ] ); - if ( id == -1 ) id=guiIntfStruct.DVD.audio_streams[i].id; +// if ( id == -1 ) id=audio_id; //guiIntfStruct.DVD.audio_streams[i].id; AddMenuCheckItem( DVDAudioLanguageMenu,tmp, id == guiIntfStruct.DVD.audio_streams[i].id, ( guiIntfStruct.DVD.audio_streams[i].id << 16 ) + evSetDVDAudio );