Depending on the version, you may get a compile issue with this edit
My version has onid and tsid defined as uint32_t but yours has them defined as uint16_tCode:- ( mpegts_network_t *mn, uint16_t onid, uint16_t tsid, int check ) + ( mpegts_network_t *mn, uint32_t onid, uint32_t tsid, int check )
You need to keep the line the same as in your current code. The last version of 4.2 from git master branch uses uinit32_t.