changeset 21453:9dd976e14792

Avoid calling validate_fname() twice for one string.
author eugeni
date Sun, 03 Dec 2006 16:10:23 +0000
parents 1f42a6aba8c9
children f91f04764311
files libass/ass.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass.c	Sun Dec 03 14:01:22 2006 +0000
+++ b/libass/ass.c	Sun Dec 03 16:10:23 2006 +0000
@@ -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;
 	}