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

transcode: NULL check

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