mirror of https://github.com/mpv-player/mpv
Always initialize libass to fix crashes caused by use without initialization.
Library init was only done if ass_enabled was true at program startup. However there are at least 2 ways how MPlayer can later try to access the library even if ass_enabled is false at that point: - per-file options can turn on ass support later - if the embeddedfonts option is enabled and the file has fonts demux_mkv will call ass_process_font git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20498 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
ccdc5fda08
commit
4df2014879
|
@ -3110,7 +3110,7 @@ if(!codecs_file || !parse_codec_cfg(codecs_file)){
|
|||
vo_init_osd();
|
||||
|
||||
#ifdef USE_ASS
|
||||
if(ass_enabled) {
|
||||
if(1 || ass_enabled) { // even if ass_enabled==0 now it can be used
|
||||
char* path = get_path("fonts");
|
||||
ass_library = ass_library_init();
|
||||
ass_set_fonts_dir(ass_library, path);
|
||||
|
|
Loading…
Reference in New Issue