Changeset 076518cb3a3cc4d198e934224ba272b4ddfb9bf9

Show
Ignore:
Timestamp:
21/09/07 03:50:54 (1 year ago)
Author:
Bernie Purcell <bitmap@videolan.org>
git-committer:
Bernie Purcell <bitmap@videolan.org> 1190339454 +0000
git-parent:

[85b3fede801dd88b5211500872455449aa13ed0f]

git-author:
Bernie Purcell <bitmap@videolan.org> 1190339454 +0000
Message:

Fix for problem found by Sebastien Fievet where subtitles weren't
showing up at all due to fontconfig returning empty strings on
font lookup.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/misc/freetype.c

    r552e595 r076518c  
    23722372                vlc_mutex_unlock( &p_sys->fontconfig_lock ); 
    23732373 
     2374                if( psz_fontfile && ! *psz_fontfile ) 
     2375                { 
     2376                    msg_Warn( p_filter, "Fontconfig was unable to find a font: \"%s\" %s" 
     2377                        " so using default font", p_style->psz_fontname, 
     2378                        ((p_style->b_bold && p_style->b_italic) ? "(Bold,Italic)" : 
     2379                                               (p_style->b_bold ? "(Bold)" : 
     2380                                             (p_style->b_italic ? "(Italic)" : ""))) ); 
     2381                    free( psz_fontfile ); 
     2382                    psz_fontfile = NULL; 
     2383                } 
     2384 
    23742385                if( psz_fontfile ) 
    23752386                { 
     
    26032614                    { 
    26042615                        /* Only text and karaoke tags are supported */ 
     2616                        msg_Dbg( p_filter, "Unsupported top-level tag '%s' ignored.", psz_node ); 
    26052617                        xml_ReaderDelete( p_xml, p_xml_reader ); 
    26062618                        p_xml_reader = NULL;