Jun 18 15:33:39 host ux-mptsd: INPUT : [input1 ] ========================PMT changed.======================== fd: 4 src: http://...
Jun 18 15:33:39 host ux-mptsd: INPUT : [input1 ] *** Last PMT *** fd: 4 src: http://...
Jun 18 15:33:39 host ux-mptsd: PMT table
Jun 18 15:33:39 host ux-mptsd: *** tei:0 pusi:1 prio:0 pid:0406 (1030) scramble:0 adapt:0 payload:1 adapt_len:0 adapt_flags:0 | pofs:4 plen:184
Jun 18 15:33:39 host ux-mptsd: *** tei:0 pusi:0 prio:0 pid:0406 (1030) scramble:0 adapt:0 payload:1 adapt_len:0 adapt_flags:0 | pofs:4 plen:184
Jun 18 15:33:39 host ux-mptsd: * Section header
Jun 18 15:33:39 host ux-mptsd: - Table id : 002 (2) program_map_section
Jun 18 15:33:39 host ux-mptsd: - Section length : 10c (268) [num_packets:2]
...
Jun 18 15:33:39 host ux-mptsd: INPUT : [input1 ] *** Current PMT *** fd: 4 src: http://...
Jun 18 15:33:39 host ux-mptsd: PMT table
Jun 18 15:33:39 host ux-mptsd: *** tei:0 pusi:1 prio:0 pid:0406 (1030) scramble:0 adapt:0 payload:1 adapt_len:0 adapt_flags:0 | pofs:4 plen:184
Jun 18 15:33:39 host ux-mptsd: * Section header
Jun 18 15:33:39 host ux-mptsd: - Table id : 002 (2) program_map_section
Jun 18 15:33:39 host ux-mptsd: - Section length : 10c (268) [num_packets:1]
...
Jun 18 15:33:39 host ux-mptsd: INPUT : [input1 ] Reconnect fd: 4 src: http://...
As you can see, the input is reconnected because the equal check fails. The reason for the fail is because the lenght of the s->last_pmt
is correct (268 bytes, num_packets:2), but the lenght of s->pmt
is inconsistent (269 bytes, but num_packets:1).