mirror of https://github.com/mpv-player/mpv
Check if the font set returned from FcFontSort in not NULL.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27128 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a2bd32e4de
commit
88a0442765
|
@ -129,6 +129,8 @@ static char* _select_font(fc_instance_t* priv, const char* family, unsigned bold
|
|||
goto error;
|
||||
|
||||
fset = FcFontSort(priv->config, pat, FcTrue, NULL, &result);
|
||||
if (!fset)
|
||||
goto error;
|
||||
|
||||
for (curf = 0; curf < fset->nfont; ++curf) {
|
||||
FcPattern* curp = fset->fonts[curf];
|
||||
|
|
Loading…
Reference in New Issue