Changeset 1605af5772bcc37e7969c050de598e5911d9637c

Show
Ignore:
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
  • modules/codec/subsdec.c

    r179c185 r1605af5  
    657657    if( i_mask & ATTRIBUTE_ALIGNMENT ) 
    658658        p_region->i_align = i_align; 
    659      
     659 
    660660    /* TODO: Setup % based offsets properly, without adversely affecting 
    661661     *       everything else in vlc. Will address with separate patch, to 
     
    732732            p_text_region->i_x         = p_style->i_margin_h; 
    733733            p_text_region->i_y         = p_style->i_margin_v; 
    734              
     734 
    735735        } 
    736736        else 
     
    744744         */ 
    745745        SetupPositions( p_text_region, psz_subtitle ); 
    746          
     746 
    747747        p_text_region->p_next = NULL; 
    748748    } 
     
    767767            { 
    768768                psz_end = strcasestr( psz_subtitle, "</text>" ); 
    769                  
     769 
    770770                if( psz_end ) 
    771771                { 
     
    779779                                                      psz_end - psz_subtitle, 
    780780                                                      p_sys->i_align ); 
    781                  
     781 
    782782                    if( p_text_region ) 
    783783                    { 
     
    806806            { 
    807807                psz_end = strcasestr( psz_subtitle, "</karaoke>" ); 
    808                  
     808 
    809809                if( psz_end ) 
    810810                { 
     
    818818                                                      psz_end - psz_subtitle, 
    819819                                                      p_sys->i_align ); 
    820                  
     820 
    821821                    if( p_text_region ) 
    822822                    { 
     
    846846                char *psz_content = strchr( psz_subtitle, '>' ); 
    847847                int   i_transparent = -1; 
    848                  
     848 
    849849                /* If a colorkey parameter is specified, then we have to map 
    850850                 * that index in the picture through as transparent (it is 
     
    896896            if( psz_end ) 
    897897                psz_subtitle = psz_end - 1; 
    898              
     898 
    899899            psz_subtitle += strcspn( psz_subtitle, ">" ); 
    900900        } 
     
    10141014            p_spu->i_x = (i_margin_l) ? i_margin_l : p_style->i_margin_h; 
    10151015        } 
    1016         else if( p_style->i_align & SUBPICTURE_ALIGN_RIGHT )  
     1016        else if( p_style->i_align & SUBPICTURE_ALIGN_RIGHT ) 
    10171017        { 
    10181018            p_spu->i_x = (i_margin_r) ? i_margin_r : p_style->i_margin_h; 
     
    11191119            { 
    11201120                block_t   *p_block; 
    1121                 
     1121 
    11221122                p_block = block_New( p_image->p_parent, p_attach->i_data ); 
    11231123 
     
    11691169        vlc_input_attachment_Delete( pp_attachments[ k ] ); 
    11701170    } 
    1171     free( pp_attachments );         
     1171    free( pp_attachments ); 
    11721172 
    11731173    return VLC_SUCCESS; 
     
    12311231            case XML_READER_ENDELEM: 
    12321232                psz_node = xml_ReaderName( p_xml_reader ); 
    1233                  
     1233 
    12341234                if( !psz_node ) 
    12351235                    break; 
     
    12581258                        break; 
    12591259                } 
    1260                  
     1260 
    12611261                free( psz_node ); 
    12621262                break; 
     
    13051305                    } 
    13061306                    /* 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. 
    13081308                     * At the moment this only effects styles defined AFTER 
    13091309                     * Default in the XML 
     
    14041404                                    p_style->font_style.i_outline_alpha = (col >> 24) & 0xff; 
    14051405                                } 
    1406                             }  
     1406                            } 
    14071407                            else if( !strcasecmp( "outline-level", psz_name ) ) 
    14081408                            { 
    14091409                                p_style->font_style.i_outline_width = atoi( psz_value ); 
    1410                             }  
     1410                            } 
    14111411                            else if( !strcasecmp( "shadow-color", psz_name ) ) 
    14121412                            { 
     
    14211421                            { 
    14221422                                p_style->font_style.i_shadow_width = atoi( psz_value ); 
    1423                             }  
     1423                            } 
    14241424                            else if( !strcasecmp( "back-color", psz_name ) ) 
    14251425                            { 
     
    14341434                            { 
    14351435                                p_style->font_style.i_spacing = atoi( psz_value ); 
    1436                             }  
     1436                            } 
    14371437                        } 
    14381438                        if( psz_name )  free( psz_name ); 
     
    15011501                    } 
    15021502                } 
    1503                  
     1503 
    15041504                free( psz_node ); 
    15051505                break; 
     
    15971597                    if( i_align == 3 || i_align == 7 || i_align == 11 ) p_style->i_align |= SUBPICTURE_ALIGN_RIGHT; 
    15981598                    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; 
    16001600 
    16011601                    p_style->i_margin_h = ( p_style->i_align & SUBPICTURE_ALIGN_RIGHT ) ? i_margin_r : i_margin_l; 
     
    18441844                            int i_len = strlen( psz_attribs[ k ] ); 
    18451845 
    1846                             if( !strncasecmp( psz_subtitle, psz_attribs[ k ], i_len ))  
     1846                            if( !strncasecmp( psz_subtitle, psz_attribs[ k ], i_len )) 
    18471847                            { 
    18481848                                i_len += strcspn( psz_subtitle + i_len, "\"" ) + 1; 
     
    20542054        return NULL; 
    20552055    } 
    2056      
     2056 
    20572057    /* Display the feed's image */ 
    20582058    memset( &fmt_out, 0, sizeof( video_format_t));