[MPlayer-dev-eng] Fix crash with sami subtitles

adland adland123 at yahoo.com
Tue May 25 19:38:24 CEST 2004


thanks for the sami example

fix is to change the mplayer subfont.ttf symlink

(ttf is for true type font
the symlink is in ~user/.mplayer/subfont.ttf

see from your error output
get_path('subfont.ttf') -> '/home/now3d/.mplayer/subfont.ttf'
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.

cd ~user/.mplayer
ln -s /usr/share/fonts/truetype/freefont/FreeSerif.ttf subfont.ttf

you may prefer another font or not have this one installed and may need
to modify the ln command

I tested with another movie but the text did appear

however still need a patch in code so it doesnt segfault if font
link is not valid and you requested a subtitle file be shown

thanks





More information about the MPlayer-dev-eng mailing list