changeset 20482:16b90fde05c9

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
author uau
date Sun, 29 Oct 2006 00:23:12 +0000
parents b6d0fe33648e
children b7c0ac305d5d
files mplayer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);