Mercurial > mplayer.hg
comparison libass/ass_cache.c @ 20629:e8885ec63928
Introduce MSGT_ASS, use it for all libass messages.
author | eugeni |
---|---|
date | Fri, 03 Nov 2006 18:15:33 +0000 |
parents | fa122b7c71c6 |
children | 092cb80a8ba4 |
comparison
equal
deleted
inserted
replaced
20628:782c697bd4c2 | 20629:e8885ec63928 |
---|---|
76 *face = face_cache[i].face; | 76 *face = face_cache[i].face; |
77 return 0; | 77 return 0; |
78 } | 78 } |
79 | 79 |
80 if (face_cache_size == MAX_FACE_CACHE_SIZE) { | 80 if (face_cache_size == MAX_FACE_CACHE_SIZE) { |
81 mp_msg(MSGT_GLOBAL, MSGL_FATAL, "Too many fonts\n"); | 81 mp_msg(MSGT_ASS, MSGL_FATAL, "Too many fonts\n"); |
82 return 1; | 82 return 1; |
83 } | 83 } |
84 | 84 |
85 path = fontconfig_select(fontconfig_priv, desc->family, desc->bold, desc->italic, &index); | 85 path = fontconfig_select(fontconfig_priv, desc->family, desc->bold, desc->italic, &index); |
86 | 86 |
87 error = FT_New_Face(library, path, index, face); | 87 error = FT_New_Face(library, path, index, face); |
88 if (error) { | 88 if (error) { |
89 if (!no_more_font_messages) | 89 if (!no_more_font_messages) |
90 mp_msg(MSGT_GLOBAL, MSGL_WARN, "Error opening font: %s, %d\n", path, index); | 90 mp_msg(MSGT_ASS, MSGL_WARN, "Error opening font: %s, %d\n", path, index); |
91 no_more_font_messages = 1; | 91 no_more_font_messages = 1; |
92 return 1; | 92 return 1; |
93 } | 93 } |
94 | 94 |
95 item = face_cache + face_cache_size; | 95 item = face_cache + face_cache_size; |