Changeset 1605af5772bcc37e7969c050de598e5911d9637c
- Timestamp:
- 05/08/07 22:01:21
(1 year ago)
- Author:
- Jean-Baptiste Kempf <jb@videolan.org>
- git-committer:
- Jean-Baptiste Kempf <jb@videolan.org> 1186344081 +0000
- git-parent:
[62b68c2c4515ec427df9fd104261ab2101cfdecc]
- git-author:
- Jean-Baptiste Kempf <jb@videolan.org> 1186344081 +0000
- Message:
Subsdec: remove trailing spaces.
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r179c185 |
r1605af5 |
|
| 657 | 657 | if( i_mask & ATTRIBUTE_ALIGNMENT ) |
|---|
| 658 | 658 | p_region->i_align = i_align; |
|---|
| 659 | | |
|---|
| | 659 | |
|---|
| 660 | 660 | /* TODO: Setup % based offsets properly, without adversely affecting |
|---|
| 661 | 661 | * everything else in vlc. Will address with separate patch, to |
|---|
| … | … | |
| 732 | 732 | p_text_region->i_x = p_style->i_margin_h; |
|---|
| 733 | 733 | p_text_region->i_y = p_style->i_margin_v; |
|---|
| 734 | | |
|---|
| | 734 | |
|---|
| 735 | 735 | } |
|---|
| 736 | 736 | else |
|---|
| … | … | |
| 744 | 744 | */ |
|---|
| 745 | 745 | SetupPositions( p_text_region, psz_subtitle ); |
|---|
| 746 | | |
|---|
| | 746 | |
|---|
| 747 | 747 | p_text_region->p_next = NULL; |
|---|
| 748 | 748 | } |
|---|
| … | … | |
| 767 | 767 | { |
|---|
| 768 | 768 | psz_end = strcasestr( psz_subtitle, "</text>" ); |
|---|
| 769 | | |
|---|
| | 769 | |
|---|
| 770 | 770 | if( psz_end ) |
|---|
| 771 | 771 | { |
|---|
| … | … | |
| 779 | 779 | psz_end - psz_subtitle, |
|---|
| 780 | 780 | p_sys->i_align ); |
|---|
| 781 | | |
|---|
| | 781 | |
|---|
| 782 | 782 | if( p_text_region ) |
|---|
| 783 | 783 | { |
|---|
| … | … | |
| 806 | 806 | { |
|---|
| 807 | 807 | psz_end = strcasestr( psz_subtitle, "</karaoke>" ); |
|---|
| 808 | | |
|---|
| | 808 | |
|---|
| 809 | 809 | if( psz_end ) |
|---|
| 810 | 810 | { |
|---|
| … | … | |
| 818 | 818 | psz_end - psz_subtitle, |
|---|
| 819 | 819 | p_sys->i_align ); |
|---|
| 820 | | |
|---|
| | 820 | |
|---|
| 821 | 821 | if( p_text_region ) |
|---|
| 822 | 822 | { |
|---|
| … | … | |
| 846 | 846 | char *psz_content = strchr( psz_subtitle, '>' ); |
|---|
| 847 | 847 | int i_transparent = -1; |
|---|
| 848 | | |
|---|
| | 848 | |
|---|
| 849 | 849 | /* If a colorkey parameter is specified, then we have to map |
|---|
| 850 | 850 | * that index in the picture through as transparent (it is |
|---|
| … | … | |
| 896 | 896 | if( psz_end ) |
|---|
| 897 | 897 | psz_subtitle = psz_end - 1; |
|---|
| 898 | | |
|---|
| | 898 | |
|---|
| 899 | 899 | psz_subtitle += strcspn( psz_subtitle, ">" ); |
|---|
| 900 | 900 | } |
|---|
| … | … | |
| 1014 | 1014 | p_spu->i_x = (i_margin_l) ? i_margin_l : p_style->i_margin_h; |
|---|
| 1015 | 1015 | } |
|---|
| 1016 | | else if( p_style->i_align & SUBPICTURE_ALIGN_RIGHT ) |
|---|
| | 1016 | else if( p_style->i_align & SUBPICTURE_ALIGN_RIGHT ) |
|---|
| 1017 | 1017 | { |
|---|
| 1018 | 1018 | p_spu->i_x = (i_margin_r) ? i_margin_r : p_style->i_margin_h; |
|---|
| … | … | |
| 1119 | 1119 | { |
|---|
| 1120 | 1120 | block_t *p_block; |
|---|
| 1121 | | |
|---|
| | 1121 | |
|---|
| 1122 | 1122 | p_block = block_New( p_image->p_parent, p_attach->i_data ); |
|---|
| 1123 | 1123 | |
|---|
| … | … | |
| 1169 | 1169 | vlc_input_attachment_Delete( pp_attachments[ k ] ); |
|---|
| 1170 | 1170 | } |
|---|
| 1171 | | free( pp_attachments ); |
|---|
| | 1171 | free( pp_attachments ); |
|---|
| 1172 | 1172 | |
|---|
| 1173 | 1173 | return VLC_SUCCESS; |
|---|
| … | … | |
| 1231 | 1231 | case XML_READER_ENDELEM: |
|---|
| 1232 | 1232 | psz_node = xml_ReaderName( p_xml_reader ); |
|---|
| 1233 | | |
|---|
| | 1233 | |
|---|
| 1234 | 1234 | if( !psz_node ) |
|---|
| 1235 | 1235 | break; |
|---|
| … | … | |
| 1258 | 1258 | break; |
|---|
| 1259 | 1259 | } |
|---|
| 1260 | | |
|---|
| | 1260 | |
|---|
| 1261 | 1261 | free( psz_node ); |
|---|
| 1262 | 1262 | break; |
|---|
| … | … | |
| 1305 | 1305 | } |
|---|
| 1306 | 1306 | /* All styles are supposed to default to Default, and then |
|---|
| 1307 | | * one or more settings are over-ridden. |
|---|
| | 1307 | * one or more settings are over-ridden. |
|---|
| 1308 | 1308 | * At the moment this only effects styles defined AFTER |
|---|
| 1309 | 1309 | * Default in the XML |
|---|
| … | … | |
| 1404 | 1404 | p_style->font_style.i_outline_alpha = (col >> 24) & 0xff; |
|---|
| 1405 | 1405 | } |
|---|
| 1406 | | } |
|---|
| | 1406 | } |
|---|
| 1407 | 1407 | else if( !strcasecmp( "outline-level", psz_name ) ) |
|---|
| 1408 | 1408 | { |
|---|
| 1409 | 1409 | p_style->font_style.i_outline_width = atoi( psz_value ); |
|---|
| 1410 | | } |
|---|
| | 1410 | } |
|---|
| 1411 | 1411 | else if( !strcasecmp( "shadow-color", psz_name ) ) |
|---|
| 1412 | 1412 | { |
|---|
| … | … | |
| 1421 | 1421 | { |
|---|
| 1422 | 1422 | p_style->font_style.i_shadow_width = atoi( psz_value ); |
|---|
| 1423 | | } |
|---|
| | 1423 | } |
|---|
| 1424 | 1424 | else if( !strcasecmp( "back-color", psz_name ) ) |
|---|
| 1425 | 1425 | { |
|---|
| … | … | |
| 1434 | 1434 | { |
|---|
| 1435 | 1435 | p_style->font_style.i_spacing = atoi( psz_value ); |
|---|
| 1436 | | } |
|---|
| | 1436 | } |
|---|
| 1437 | 1437 | } |
|---|
| 1438 | 1438 | if( psz_name ) free( psz_name ); |
|---|
| … | … | |
| 1501 | 1501 | } |
|---|
| 1502 | 1502 | } |
|---|
| 1503 | | |
|---|
| | 1503 | |
|---|
| 1504 | 1504 | free( psz_node ); |
|---|
| 1505 | 1505 | break; |
|---|
| … | … | |
| 1597 | 1597 | if( i_align == 3 || i_align == 7 || i_align == 11 ) p_style->i_align |= SUBPICTURE_ALIGN_RIGHT; |
|---|
| 1598 | 1598 | if( i_align < 4 ) p_style->i_align |= SUBPICTURE_ALIGN_BOTTOM; |
|---|
| 1599 | | else if( i_align < 8 ) p_style->i_align |= SUBPICTURE_ALIGN_TOP; |
|---|
| | 1599 | else if( i_align < 8 ) p_style->i_align |= SUBPICTURE_ALIGN_TOP; |
|---|
| 1600 | 1600 | |
|---|
| 1601 | 1601 | p_style->i_margin_h = ( p_style->i_align & SUBPICTURE_ALIGN_RIGHT ) ? i_margin_r : i_margin_l; |
|---|
| … | … | |
| 1844 | 1844 | int i_len = strlen( psz_attribs[ k ] ); |
|---|
| 1845 | 1845 | |
|---|
| 1846 | | if( !strncasecmp( psz_subtitle, psz_attribs[ k ], i_len )) |
|---|
| | 1846 | if( !strncasecmp( psz_subtitle, psz_attribs[ k ], i_len )) |
|---|
| 1847 | 1847 | { |
|---|
| 1848 | 1848 | i_len += strcspn( psz_subtitle + i_len, "\"" ) + 1; |
|---|
| … | … | |
| 2054 | 2054 | return NULL; |
|---|
| 2055 | 2055 | } |
|---|
| 2056 | | |
|---|
| | 2056 | |
|---|
| 2057 | 2057 | /* Display the feed's image */ |
|---|
| 2058 | 2058 | memset( &fmt_out, 0, sizeof( video_format_t)); |
|---|