Commit f26b5f0c authored by Francois Cartegnie's avatar Francois Cartegnie

demux: ts: add SL access unit gathering struct

parent 9ed17fac
......@@ -258,6 +258,12 @@ typedef struct
block_t * p_prepcr_outqueue;
/* SL AU */
struct
{
block_t *p_data;
block_t **pp_last;
} sl;
} ts_pes_t;
......@@ -2600,6 +2606,13 @@ static inline void FlushESBuffer( ts_pes_t *p_pes )
p_pes->p_data = NULL;
p_pes->pp_last = &p_pes->p_data;
}
if( p_pes->sl.p_data )
{
block_ChainRelease( p_pes->sl.p_data );
p_pes->sl.p_data = NULL;
p_pes->sl.pp_last = &p_pes->sl.p_data;
}
}
static void ReadyQueuesPostSeek( demux_t *p_demux )
......@@ -5618,6 +5631,8 @@ static ts_pes_t *ts_pes_New( demux_t *p_demux )
pes->p_data = NULL;
pes->pp_last = &pes->p_data;
pes->p_prepcr_outqueue = NULL;
pes->sl.p_data = NULL;
pes->sl.pp_last = &pes->sl.p_data;
return 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