Commit 0710c61c authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Fix NULL dereference before NULL check (CID #119)

And guess what? it was tagged a FALSE positive.
parent be30b646
......@@ -2801,7 +2801,7 @@ static void transcode_osd_close( sout_stream_t *p_stream, sout_stream_id_t *id)
/* Close encoder */
if( id )
{
if( id->p_encoder->p_module )
if( id->p_encoer && id->p_encoder->p_module )
module_Unneed( id->p_encoder, id->p_encoder->p_module );
if( id->id ) p_sys->p_out->pf_del( p_sys->p_out, id->id );
......
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