Commit 77609b74 authored by Gildas Bazin's avatar Gildas Bazin

* modules/stream_out/transcode.c: fixed small memleak.

parent 768c27bf
...@@ -1500,6 +1500,8 @@ static int transcode_video_new( sout_stream_t *p_stream, sout_stream_id_t *id ) ...@@ -1500,6 +1500,8 @@ static int transcode_video_new( sout_stream_t *p_stream, sout_stream_id_t *id )
/* Close the encoder. /* Close the encoder.
* We'll open it only when we have the first frame. */ * We'll open it only when we have the first frame. */
module_Unneed( id->p_encoder, id->p_encoder->p_module ); module_Unneed( id->p_encoder, id->p_encoder->p_module );
if( id->p_encoder->fmt_out.p_extra )
free( id->p_encoder->fmt_out.p_extra );
id->p_encoder->p_module = NULL; id->p_encoder->p_module = NULL;
if( p_sys->i_threads >= 1 ) if( p_sys->i_threads >= 1 )
......
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