# HG changeset patch # User uau # Date 1162081392 0 # Node ID 16b90fde05c9aec9290417e886cb5439a193e7e2 # Parent b6d0fe33648e2d0e3123230ac1e442562c871d85 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 diff -r b6d0fe33648e -r 16b90fde05c9 mplayer.c --- a/mplayer.c Sat Oct 28 18:40:25 2006 +0000 +++ b/mplayer.c Sun Oct 29 00:23:12 2006 +0000 @@ -3110,7 +3110,7 @@ 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);