Commit 8587d92a authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

transcode: NULL check

parent ae226d5a
......@@ -40,7 +40,8 @@ static subpicture_t *spu_new_buffer( decoder_t *p_dec,
{
VLC_UNUSED( p_dec );
subpicture_t *p_subpicture = subpicture_New( p_upd );
p_subpicture->b_subtitle = true;
if( likely(p_subpicture != NULL) )
p_subpicture->b_subtitle = true;
return p_subpicture;
}
......
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