|
@@ -182,7 +182,7 @@ int process_pat(INPUT *r, uint16_t pid, uint8_t *ts_packet) {
|
182
|
182
|
// Process PAT
|
183
|
183
|
s->pat = ts_pat_push_packet(s->pat, ts_packet);
|
184
|
184
|
|
185
|
|
- s->last_pat = ts_pat_push_packet(s->last_pat, ts_packet);
|
|
185
|
+
|
186
|
186
|
if (s->last_pat->initialized) {
|
187
|
187
|
if (!ts_pat_is_same(s->pat, s->last_pat)) {
|
188
|
188
|
proxy_log(r, "PAT changed.");
|
|
@@ -191,7 +191,7 @@ int process_pat(INPUT *r, uint16_t pid, uint8_t *ts_packet) {
|
191
|
191
|
ts_pat_free(&s->last_pat);
|
192
|
192
|
s->last_pat = ts_pat_alloc();
|
193
|
193
|
}
|
194
|
|
-
|
|
194
|
+ s->last_pat = ts_pat_push_packet(s->last_pat, ts_packet);
|
195
|
195
|
if (s->pat->initialized) {
|
196
|
196
|
// PMT pid is still unknown
|
197
|
197
|
if (!s->pmt_pid) {
|