[MPlayer-cvslog] r35324 - trunk/sub/font_load_ft.c
reimar
subversion at mplayerhq.hu
Thu Nov 1 22:42:41 CET 2012
Author: reimar
Date: Thu Nov 1 22:42:40 2012
New Revision: 35324
Log:
More strict check so it is actually possible to trigger.
A font with only the "fallback" character is rather useless.
Modified:
trunk/sub/font_load_ft.c
Modified: trunk/sub/font_load_ft.c
==============================================================================
--- trunk/sub/font_load_ft.c Thu Nov 1 22:31:53 2012 (r35323)
+++ trunk/sub/font_load_ft.c Thu Nov 1 22:42:40 2012 (r35324)
@@ -787,7 +787,7 @@ static int prepare_charset(char *charmap
charset_size = count;
iconv_close(cd);
- if (charset_size==0) {
+ if (charset_size <= 1) {
mp_msg(MSGT_OSD, MSGL_ERR, "No characters to render!\n");
return -1;
}
More information about the MPlayer-cvslog
mailing list