[MPlayer-cvslog] r36800 - trunk/gui/dialog/menu.c

ib subversion at mplayerhq.hu
Fri Feb 7 20:07:39 CET 2014


Author: ib
Date: Fri Feb  7 20:07:39 2014
New Revision: 36800

Log:
Add language to audio track information.

Modified:
   trunk/gui/dialog/menu.c

Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c	Fri Feb  7 19:48:49 2014	(r36799)
+++ trunk/gui/dialog/menu.c	Fri Feb  7 20:07:39 2014	(r36800)
@@ -635,8 +635,9 @@ GtkWidget * CreatePopUpMenu( void )
         {
          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 );
         }
      }


More information about the MPlayer-cvslog mailing list