From ade772d1ff0030ea9d48f48b9918cd947d4b32ea Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sun, 11 Feb 2018 17:44:16 +0100 Subject: [PATCH] dvb psi: parse first table bugfix2 --- src/input/mpegts/dvb_psi_lib.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/input/mpegts/dvb_psi_lib.c b/src/input/mpegts/dvb_psi_lib.c index ce181601e..ef0648bd3 100644 --- a/src/input/mpegts/dvb_psi_lib.c +++ b/src/input/mpegts/dvb_psi_lib.c @@ -350,7 +350,9 @@ dvb_table_begin } /* New version */ - if (st->version != MPEGTS_PSI_VERSION_NONE && st->version != *ver) { + if (st->version == MPEGTS_PSI_VERSION_NONE) + st->version = *ver; + if (st->version != *ver) { tvhtrace(mt->mt_subsys, "%s: new version, restart", mt->mt_name); mpegts_table_state_restart(mt, st, *last, *ver); } -- 2.47.3