Commit 311397e1 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

caf: simplify error handling

parent c8874585
......@@ -903,19 +903,13 @@ static int Open( vlc_object_t *p_this )
goto caf_open_end;
}
caf_open_end:
if( i_error )
{
es_format_Clean( &p_sys->fmt );
free( p_sys );
}
else
{
p_demux->pf_control = Control;
p_demux->pf_demux = Demux;
}
p_demux->pf_control = Control;
p_demux->pf_demux = Demux;
return VLC_SUCCESS;
caf_open_end:
es_format_Clean( &p_sys->fmt );
free( p_sys );
return i_error;
}
......
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