Changeset 076518cb3a3cc4d198e934224ba272b4ddfb9bf9
- 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
| r552e595 |
r076518c |
|
| 2372 | 2372 | vlc_mutex_unlock( &p_sys->fontconfig_lock ); |
|---|
| 2373 | 2373 | |
|---|
| | 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 | |
|---|
| 2374 | 2385 | if( psz_fontfile ) |
|---|
| 2375 | 2386 | { |
|---|
| … | … | |
| 2603 | 2614 | { |
|---|
| 2604 | 2615 | /* Only text and karaoke tags are supported */ |
|---|
| | 2616 | msg_Dbg( p_filter, "Unsupported top-level tag '%s' ignored.", psz_node ); |
|---|
| 2605 | 2617 | xml_ReaderDelete( p_xml, p_xml_reader ); |
|---|
| 2606 | 2618 | p_xml_reader = NULL; |
|---|