if( !strcmp( p_sys->pp_ssa_styles[i]->psz_stylename, psz_style ) )
p_style = p_sys->pp_ssa_styles[i];
}
- if( psz_style ) free( psz_style );
+ free( psz_style );
p_spu->p_region->psz_text = psz_new_subtitle;
if( p_style == NULL )
p_sys->i_original_height = ( temp > 0 ) ? temp : -1;
else if( sscanf( psz_parser, "Script Type: %8192s", buffer_text ) == 1 )
{
- if( !strcasecmp( buffer_text, "V4.00+" ) ) p_sys->b_ass = VLC_TRUE;
+ if( !strcasecmp( buffer_text, "V4.00+" ) ) p_sys->b_ass = true;
}
else if( !strncasecmp( psz_parser, "[V4 Styles]", 11 ) )
i_section_type = 1;
else if( !strncasecmp( psz_parser, "[V4+ Styles]", 12) )
{
i_section_type = 2;
- p_sys->b_ass = VLC_TRUE;
+ p_sys->b_ass = true;
}
else if( !strncasecmp( psz_parser, "[Events]", 8 ) )
i_section_type = 4;
}
eof:
- if( psz_header ) free( psz_header );
+ free( psz_header );
return;
}