[MPlayer-cvslog] r36581 - trunk/gui/dialog/preferences.c

ib subversion at mplayerhq.hu
Tue Jan 14 18:56:50 CET 2014


Author: ib
Date: Tue Jan 14 18:56:50 2014
New Revision: 36581

Log:
Fix setting entry for subtitle_font_encoding.

This is necessary after rearrangement of the codings.

Modified:
   trunk/gui/dialog/preferences.c

Modified: trunk/gui/dialog/preferences.c
==============================================================================
--- trunk/gui/dialog/preferences.c	Tue Jan 14 18:13:36 2014	(r36580)
+++ trunk/gui/dialog/preferences.c	Tue Jan 14 18:56:50 2014	(r36581)
@@ -1223,11 +1223,11 @@ void ShowPreferences( void )
  gtk_adjustment_set_value( HSFontOutLineadj,subtitle_font_thickness / 8.0 * 100.0);   // transform 0..8 to 0..100
  gtk_adjustment_set_value( HSFontTextScaleadj,text_font_scale_factor );
  gtk_adjustment_set_value( HSFontOSDScaleadj,osd_font_scale_factor );
- if ( subtitle_font_encoding )
   {
    int i;
+   const char *s = (subtitle_font_encoding ? subtitle_font_encoding : "UNICODE");
    for ( i=0;lEncoding[i].name;i++ )
-    if ( !strcasecmp( subtitle_font_encoding,lEncoding[i].name ) ) break;
+    if ( !strcasecmp( s,lEncoding[i].name ) ) break;
    if ( lEncoding[i].name ) gtk_entry_set_text( GTK_ENTRY( EFontEncoding ),lEncoding[i].comment );
   }
  switch ( subtitle_autoscale )


More information about the MPlayer-cvslog mailing list