summaryrefslogtreecommitdiffstats
path: root/drivers/media/test-drivers/vidtv/vidtv_psi.h
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-11-23 14:16:40 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2020-11-26 08:05:23 +0100
commit039b7caed173667eccd8725509f3995c661aae82 (patch)
treeda4315dd1800c2934f6566e88da54d933d271221 /drivers/media/test-drivers/vidtv/vidtv_psi.h
parent91a8a240e2806c37eaf730347831f4a7de1535ac (diff)
downloadlinux-stable-039b7caed173667eccd8725509f3995c661aae82.tar.gz
linux-stable-039b7caed173667eccd8725509f3995c661aae82.tar.bz2
linux-stable-039b7caed173667eccd8725509f3995c661aae82.zip
media: vidtv: add a PID entry for the NIT table
On normal TS streams, the NIT table has its own entry at PAT, but not at PMT. While here, properly handle alloc problems when creating PMT entries. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/test-drivers/vidtv/vidtv_psi.h')
-rw-r--r--drivers/media/test-drivers/vidtv/vidtv_psi.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/media/test-drivers/vidtv/vidtv_psi.h b/drivers/media/test-drivers/vidtv/vidtv_psi.h
index d8645d75c3f1..c3bd440e1320 100644
--- a/drivers/media/test-drivers/vidtv/vidtv_psi.h
+++ b/drivers/media/test-drivers/vidtv/vidtv_psi.h
@@ -174,7 +174,8 @@ struct vidtv_psi_table_pat_program {
*/
struct vidtv_psi_table_pat {
struct vidtv_psi_table_header header;
- u16 programs; /* Included by libdvbv5, not part of the table and not actually serialized */
+ u16 num_pat;
+ u16 num_pmt;
struct vidtv_psi_table_pat_program *program;
} __packed;