Commit 889d5548 authored by Rémi Duraffort's avatar Rémi Duraffort

dvbsub: remove dummy test (already check then dereference before).

parent 4b7fc754
...@@ -1643,11 +1643,6 @@ static subpicture_t *render( decoder_t *p_dec ) ...@@ -1643,11 +1643,6 @@ static subpicture_t *render( decoder_t *p_dec )
fmt.i_height = fmt.i_visible_height = p_region->i_height; fmt.i_height = fmt.i_visible_height = p_region->i_height;
fmt.i_x_offset = fmt.i_y_offset = 0; fmt.i_x_offset = fmt.i_y_offset = 0;
p_spu_region = subpicture_region_New( &fmt ); p_spu_region = subpicture_region_New( &fmt );
if( !p_region )
{
msg_Err( p_dec, "cannot allocate SPU region" );
continue;
}
p_spu_region->psz_text = strdup( p_object_def->psz_text ); p_spu_region->psz_text = strdup( p_object_def->psz_text );
p_spu_region->i_x = i_base_x + p_regiondef->i_x + p_object_def->i_x; p_spu_region->i_x = i_base_x + p_regiondef->i_x + p_object_def->i_x;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment