Navigation Menu

Skip to content

Commit

Permalink
Add ECM PIDs to new services
Browse files Browse the repository at this point in the history
Patch courtesy of Daniel Kucera.
  • Loading branch information
cmassiot committed Feb 29, 2016
1 parent 5994223 commit 074dda7
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions demux.c
Expand Up @@ -1140,6 +1140,23 @@ static void GetPIDS( uint16_t **ppi_wanted_pids, int *pi_nb_wanted_pids,
}
}

const uint8_t *p_desc;

if ( b_enable_ecm )
{
j = 0;

while ((p_desc = descs_get_desc( pmt_get_descs( p_pmt ), j++ )) != NULL)
{
if ( desc_get_tag( p_desc ) != 0x09 ||
!desc09_validate( p_desc ) )
continue;
*ppi_wanted_pids = realloc( *ppi_wanted_pids,
(*pi_nb_wanted_pids + 1) * sizeof(uint16_t) );
(*ppi_wanted_pids)[(*pi_nb_wanted_pids)++] = desc09_get_pid( p_desc );
}
}

if ( i_pcr_pid != PADDING_PID && i_pcr_pid != i_pmt_pid
&& !IsIn( *ppi_wanted_pids, *pi_nb_wanted_pids, i_pcr_pid ) )
{
Expand Down

0 comments on commit 074dda7

Please sign in to comment.