Commit d4061cdb authored by Christophe Massiot's avatar Christophe Massiot

* en50221.c: Do not send empty CAPMT when no PID is selected.

parent 114c5d58
...@@ -1156,6 +1156,14 @@ static uint8_t *CAPMTBuild( access_t * p_access, int i_session_id, ...@@ -1156,6 +1156,14 @@ static uint8_t *CAPMTBuild( access_t * p_access, int i_session_id,
} }
} }
if ( *pi_capmt_size <= 7 + i_cad_program_size )
{
msg_Dbg( p_access, "CAPMT not needed, no ES selected" );
free( p_capmt );
*pi_capmt_size = 0;
return NULL;
}
return p_capmt; return p_capmt;
} }
......
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