[MPlayer-cvslog] r36752 - trunk/gui/interface.c

ib subversion at mplayerhq.hu
Sun Jan 26 18:04:54 CET 2014


Author: ib
Date: Sun Jan 26 18:04:54 2014
New Revision: 36752

Log:
Revise non-FreeType part of mplayerLoadFont().

Use setdup() which does the same.

Modified:
   trunk/gui/interface.c

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Sun Jan 26 18:02:28 2014	(r36751)
+++ trunk/gui/interface.c	Sun Jan 26 18:04:54 2014	(r36752)
@@ -1102,8 +1102,7 @@ void mplayerLoadFont(void)
         vo_font = read_font_desc(font_name, font_factor, 0);
 
         if (!vo_font) {
-            nfree(font_name);
-            font_name = gstrdup(MPLAYER_DATADIR "/font/font.desc");
+            setdup(&font_name, MPLAYER_DATADIR "/font/font.desc");
             vo_font   = read_font_desc(font_name, font_factor, 0);
         }
     }


More information about the MPlayer-cvslog mailing list