Commit 4659b3db authored by Francois Cartegnie's avatar Francois Cartegnie

demux: ts: delay sdt handling until es are created

refs #6175
If sdt appears prior pmt/es, the group from first
SET_GROUP_META call overrides default selection.
parent 1acd7199
......@@ -3416,9 +3416,9 @@ static void SDTCallBack( demux_t *p_demux, dvbpsi_sdt_t *p_sdt )
msg_Dbg( p_demux, "SDTCallBack called" );
if( sdt->psi->i_sdt_version != -1 &&
( !p_sdt->b_current_next ||
p_sdt->i_version == sdt->psi->i_sdt_version ) )
if( p_sys->b_delay_es_creation ||
!p_sdt->b_current_next ||
p_sdt->i_version == sdt->psi->i_sdt_version )
{
dvbpsi_DeleteSDT( p_sdt );
return;
......
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