[bTSstream-devel] [PATCH] examples/dvb_print_si: Handle all EIT table ids
Georgi Chorbadzhiyski
gf at unixsol.org
Sun Nov 19 16:31:07 CET 2017
Fixes an annoying omission in examples.
-------------- next part --------------
From cc9bb843f332edb32a7db3f78f31445aec857ef0 Mon Sep 17 00:00:00 2001
From: Georgi Chorbadzhiyski <gf at unixsol.org>
Date: Sun, 15 Oct 2017 19:21:11 +0300
Subject: [PATCH] examples/dvb_print_si: Handle all EIT table ids
Without this fix only actual present/following EIT table is parsed.
---
examples/dvb_print_si.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/examples/dvb_print_si.c b/examples/dvb_print_si.c
index bb81e5b..470430b 100644
--- a/examples/dvb_print_si.c
+++ b/examples/dvb_print_si.c
@@ -1029,15 +1029,17 @@ static void handle_section(uint16_t i_pid, uint8_t *p_section)
handle_sit_section(i_pid, p_section);
break;
- case EIT_TABLE_ID_PF_ACTUAL:
- handle_eit_section(i_pid, p_section);
- break;
-
case SCTE35_TABLE_ID:
handle_scte35_section(i_pid, p_section);
break;
default:
+ if ((i_table_id == EIT_TABLE_ID_PF_ACTUAL || (i_table_id >= EIT_TABLE_ID_SCHED_ACTUAL_FIRST && i_table_id <= EIT_TABLE_ID_SCHED_ACTUAL_LAST)) ||
+ (i_table_id == EIT_TABLE_ID_PF_OTHER || (i_table_id >= EIT_TABLE_ID_SCHED_OTHER_FIRST && i_table_id <= EIT_TABLE_ID_SCHED_OTHER_LAST)))
+ {
+ handle_eit_section(i_pid, p_section);
+ break;
+ }
free( p_section );
break;
}
--
2.9.0
More information about the biTStream-devel
mailing list