[MPlayer-cvslog] r23762 - trunk/libvo/sub.c

zuxy subversion at mplayerhq.hu
Wed Jul 11 12:01:54 CEST 2007


Author: zuxy
Date: Wed Jul 11 12:01:54 2007
New Revision: 23762

Log:
Use -font for subtitles when -subfont is not given, patch by kiriuja
<mplayer-patches AT en-directo DOT net>


Modified:
   trunk/libvo/sub.c

Modified: trunk/libvo/sub.c
==============================================================================
--- trunk/libvo/sub.c	(original)
+++ trunk/libvo/sub.c	Wed Jul 11 12:01:54 2007
@@ -835,7 +835,10 @@ int vo_update_osd(int dxs,int dys){
     if (force_load_font) {
 	force_load_font = 0;
         load_font_ft(dxs, dys, &vo_font, font_name);
-        load_font_ft(dxs, dys, &sub_font, sub_font_name);
+	if (sub_font_name)
+	    load_font_ft(dxs, dys, &sub_font, sub_font_name);
+	else
+	    sub_font = vo_font;
 	prev_dxs = dxs;
 	prev_dys = dys;
 	defer_counter = 0;
@@ -843,7 +846,10 @@ int vo_update_osd(int dxs,int dys){
        if (!vo_font) 
            load_font_ft(dxs, dys, &vo_font, font_name);
        if (!sub_font) 
-           load_font_ft(dxs, dys, &sub_font, sub_font_name);
+           if (sub_font_name)
+               load_font_ft(dxs, dys, &sub_font, sub_font_name);
+           else
+               sub_font = vo_font;
     }
 #endif
 



More information about the MPlayer-cvslog mailing list