# HG changeset patch # User ib # Date 1391800059 0 # Node ID a37f9abea303328993979828f80d6d21b858a098 # Parent 712751eb3ad6be3283141cab6f5f7c4528be60fa Add language to audio track information. diff -r 712751eb3ad6 -r a37f9abea303 gui/dialog/menu.c --- a/gui/dialog/menu.c Fri Feb 07 18:48:49 2014 +0000 +++ b/gui/dialog/menu.c Fri Feb 07 19:07:39 2014 +0000 @@ -635,8 +635,9 @@ { int aid = ((sh_audio_t *)demuxer->a_streams[i])->aid; int selected_id = (audio_id == aid || (audio_id == -1 && aid == demuxer_default_audio_track(demuxer))); - char tmp[64]; - snprintf( tmp,sizeof(tmp),MSGTR_GUI_TrackN,aid ); + char lng[32], tmp[64]; + if ( demuxer_audio_lang( demuxer, i, lng, sizeof(lng) ) == 0 ) snprintf( tmp,sizeof(tmp),MSGTR_GUI_TrackN" - %s",aid,lng ); + else snprintf( tmp,sizeof(tmp),MSGTR_GUI_TrackN,aid ); AddMenuCheckItem( window1, (const char*)empty1px_xpm, SubMenu,tmp,selected_id,( aid << 16 ) + ivSetAudio ); } }