Skip to content

Commit

Permalink
1. when pat table changed in ts stream , Reconnect ts stream
Browse files Browse the repository at this point in the history
  • Loading branch information
ningpeng committed Aug 30, 2016
1 parent a0000ff commit 5fa6a62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions input.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ int process_pat(INPUT *r, uint16_t pid, uint8_t *ts_packet) {
// Process PAT
s->pat = ts_pat_push_packet(s->pat, ts_packet);

s->last_pat = ts_pat_push_packet(s->last_pat, ts_packet);

if (s->last_pat->initialized) {
if (!ts_pat_is_same(s->pat, s->last_pat)) {
proxy_log(r, "PAT changed.");
Expand All @@ -191,7 +191,7 @@ int process_pat(INPUT *r, uint16_t pid, uint8_t *ts_packet) {
ts_pat_free(&s->last_pat);
s->last_pat = ts_pat_alloc();
}

s->last_pat = ts_pat_push_packet(s->last_pat, ts_packet);
if (s->pat->initialized) {
// PMT pid is still unknown
if (!s->pmt_pid) {
Expand Down

0 comments on commit 5fa6a62

Please sign in to comment.