mirror of
https://github.com/mpv-player/mpv
synced 2025-01-19 13:51:14 +00:00
Don't check if user-supplied default font path exists.
It is checked in FT_New_Face anyway. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22964 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
8df280eb31
commit
82072cfec5
@ -383,13 +383,8 @@ fc_instance_t* fontconfig_init(ass_library_t* library, FT_Library ftlibrary, con
|
||||
}
|
||||
|
||||
priv->family_default = family ? strdup(family) : 0;
|
||||
priv->path_default = path ? strdup(path) : 0;
|
||||
priv->index_default = 0;
|
||||
|
||||
rc = stat(path, &st);
|
||||
if (!rc && S_ISREG(st.st_mode))
|
||||
priv->path_default = path ? strdup(path) : 0;
|
||||
else
|
||||
priv->path_default = 0;
|
||||
|
||||
return priv;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user