[MPlayer-cvslog] r21469 - trunk/libass/ass.c

eugeni subversion at mplayerhq.hu
Sun Dec 3 17:10:23 CET 2006


Author: eugeni
Date: Sun Dec  3 17:10:23 2006
New Revision: 21469

Modified:
   trunk/libass/ass.c

Log:
Avoid calling validate_fname() twice for one string.


Modified: trunk/libass/ass.c
==============================================================================
--- trunk/libass/ass.c	(original)
+++ trunk/libass/ass.c	Sun Dec  3 17:10:23 2006
@@ -583,8 +583,6 @@
 	return 0;
 }
 
-static char* validate_fname(char* name);
-
 static int process_fonts_line(ass_track_t* track, char *str)
 {
 	int len;
@@ -595,7 +593,7 @@
 		if (track->parser_priv->fontname) {
 			decode_font(track);
 		}
-		track->parser_priv->fontname = validate_fname(p);
+		track->parser_priv->fontname = strdup(p);
 		mp_msg(MSGT_ASS, MSGL_V, "fontname: %s\n", track->parser_priv->fontname);
 		return 0;
 	}



More information about the MPlayer-cvslog mailing list