1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-06 15:10:20 +00:00

fix selected audio language in menu

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9039 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2003-01-19 21:45:55 +00:00
parent d3e48cca8a
commit 149db71359

View File

@ -379,13 +379,13 @@ GtkWidget * create_PopUpMenu( void )
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 );