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

pva: fix leak

Block chain MUST be gathered before sending out.
parent 71cbdc47
......@@ -219,6 +219,10 @@ static int Demux( demux_t *p_demux )
{
es_out_SetPCR( p_demux->out, p_frame->i_pts);
}
p_frame = block_ChainGather( p_frame );
if( unlikely(p_frame == NULL) )
abort();
es_out_Send( p_demux->out, p_sys->p_video, p_frame );
p_sys->p_es = NULL;
......@@ -429,6 +433,8 @@ static void ParsePES( demux_t *p_demux )
}
p_pes = block_ChainGather( p_pes );
if( unlikely(p_pes == NULL) )
abort();
if( p_pes->i_buffer <= i_skip )
{
block_ChainRelease( p_pes );
......
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