Commit c9275380 authored by Clément Stenac's avatar Clément Stenac

Fix segfault when spu heap is full

parent 16449bfd
......@@ -947,7 +947,10 @@ static subpicture_t *spu_new_buffer( decoder_t *p_dec )
}
p_subpic = spu_CreateSubpicture( p_vout->p_spu );
p_subpic->i_channel = p_sys->i_spu_channel;
if( p_subpic )
{
p_subpic->i_channel = p_sys->i_spu_channel;
}
vlc_object_release( p_vout );
......
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