return VLC_SUCCESS;
}
-void transcode_spu_close( sout_stream_id_t *id)
+void transcode_spu_close( sout_stream_t *p_stream, sout_stream_id_t *id)
{
+ sout_stream_sys_t *p_sys = p_stream->p_sys;
/* Close decoder */
if( id->p_decoder->p_module )
module_unneed( id->p_decoder, id->p_decoder->p_module );
/* Close encoder */
if( id->p_encoder->p_module )
module_unneed( id->p_encoder, id->p_encoder->p_module );
+
+ if( p_sys->p_spu )
+ {
+ spu_Destroy( p_sys->p_spu );
+ p_sys->p_spu = NULL;
+ }
}
int transcode_spu_process( sout_stream_t *p_stream,
if( !id->id )
{
- transcode_spu_close( id );
+ transcode_spu_close( p_stream, id );
return false;
}
}