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

ib subversion at mplayerhq.hu
Tue Apr 3 19:30:28 EEST 2018


Author: ib
Date: Tue Apr  3 19:30:28 2018
New Revision: 38032

Log:
Customize DVD subtitle information to match ordinary subtitle information.

Add a track number.

Modified:
   trunk/gui/dialog/menu.c

Modified: trunk/gui/dialog/menu.c
==============================================================================
--- trunk/gui/dialog/menu.c	Tue Apr  3 19:18:41 2018	(r38031)
+++ trunk/gui/dialog/menu.c	Tue Apr  3 19:30:28 2018	(r38032)
@@ -772,7 +772,7 @@ GtkWidget * CreatePopUpMenu( void )
 
        for ( i=0;i < guiInfo.Subtitles;i++ )
         {
-         av_strlcpy( tmp,GetLanguage( &guiInfo.Subtitle[i].language, GET_LANG_INT ),sizeof(tmp) );
+         snprintf(tmp, sizeof(tmp), MSGTR_GUI_TrackN" - %s", i, GetLanguage(&guiInfo.Subtitle[i].language, GET_LANG_INT));
          AddMenuCheckItem( window1, (const char*)empty1px_xpm, DVDSubtitleLanguageMenu,tmp,
                            guiInfo.mpcontext->d_sub->id == guiInfo.Subtitle[i].id,
                            ( guiInfo.Subtitle[i].id << 16 ) + ivSetDVDSubtitle );


More information about the MPlayer-cvslog mailing list