From b2efb5b6c9fdf2592e65acecb2fe22a1dc6f031c Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Thu, 7 Mar 2013 14:53:20 +0000 Subject: [PATCH] Swap the order of the PAT and PMT packets injected by the passthrough muxer - it is more logical to write the PAT first, followed by the PMT, as that is the order parsers will need to process the packets. (cherry picked from commit 5d8af1a209a2c40b60252942ad77ff1df4d92712) --- src/muxer/muxer_pass.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/muxer/muxer_pass.c b/src/muxer/muxer_pass.c index 50dd5e23..97e9b156 100644 --- a/src/muxer/muxer_pass.c +++ b/src/muxer/muxer_pass.c @@ -230,8 +230,8 @@ pass_muxer_write_ts(muxer_t *m, pktbuf_t *pb) if(!rem) { pm->pm_pat[3] = (pm->pm_pat[3] & 0xf0) | (pm->pm_ic & 0x0f); pm->pm_pmt[3] = (pm->pm_pmt[3] & 0xf0) | (pm->pm_ic & 0x0f); - pass_muxer_write(m, pm->pm_pmt, 188); pass_muxer_write(m, pm->pm_pat, 188); + pass_muxer_write(m, pm->pm_pmt, 188); pm->pm_ic++; } }