Mercurial > mplayer.hg
changeset 36704:a37f9abea303
Add language to audio track information.
author | ib |
---|---|
date | Fri, 07 Feb 2014 19:07:39 +0000 |
parents | 712751eb3ad6 |
children | 5697842046d2 |
files | gui/dialog/menu.c |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 ); } }