Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libdvbpsi
Commits
d1c39d1a
Commit
d1c39d1a
authored
Mar 25, 2012
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup EIT generator
Cleanup EIT generator as merged from his Sašo Kiselkov repository.
parent
e88e9a83
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
+19
-7
src/tables/eit.c
src/tables/eit.c
+9
-6
src/tables/eit.h
src/tables/eit.h
+10
-1
No files found.
src/tables/eit.c
View file @
d1c39d1a
...
...
@@ -621,14 +621,17 @@ static inline void EncodeEventHeaders(dvbpsi_eit_event_t *p_event, uint8_t *buf)
*****************************************************************************
* Generate EIT sections based on the dvbpsi_eit_t structure.
*****************************************************************************/
dvbpsi_psi_section_t
*
dvbpsi_GenEITSections
(
dvbpsi_eit_t
*
p_eit
,
dvbpsi_psi_section_t
*
dvbpsi_GenEITSections
(
dvbpsi_
t
*
p_dvbpsi
,
dvbpsi_
eit_t
*
p_eit
,
uint8_t
i_table_id
)
{
dvbpsi_psi_section_t
*
p_result
=
NewEITSection
(
p_eit
,
i_table_id
,
0
)
,
*
p_current
=
p_result
;
dvbpsi_psi_section_t
*
p_result
=
NewEITSection
(
p_eit
,
i_table_id
,
0
)
;
dvbpsi_psi_section_t
*
p_current
=
p_result
;
uint8_t
i_last_section_number
=
0
;
dvbpsi_eit_event_t
*
p_event
;
if
(
!
p_current
)
return
NULL
;
/* Encode events */
for
(
p_event
=
p_eit
->
p_first_event
;
p_event
;
p_event
=
p_event
->
p_next
)
{
...
...
@@ -669,7 +672,7 @@ dvbpsi_psi_section_t* dvbpsi_GenEITSections(dvbpsi_eit_t *p_eit,
if
((
p_current
->
p_payload_end
-
p_current
->
p_data
)
+
p_descriptor
->
i_length
>
4090
)
{
DVBPSI_ERROR
(
"EIT generator"
,
"too many descriptors in event, "
dvbpsi_error
(
p_dvbpsi
,
"EIT generator"
,
"too many descriptors in event, "
"unable to carry all the descriptors"
);
break
;
}
...
...
@@ -697,7 +700,7 @@ dvbpsi_psi_section_t* dvbpsi_GenEITSections(dvbpsi_eit_t *p_eit,
p_current
->
p_data
[
12
]
=
i_last_section_number
;
p_current
->
i_last_number
=
i_last_section_number
;
dvbpsi_BuildPSISection
(
p_current
);
dvbpsi_BuildPSISection
(
p_
dvbpsi
,
p_
current
);
}
return
p_result
;
...
...
src/tables/eit.h
View file @
d1c39d1a
...
...
@@ -251,7 +251,16 @@ dvbpsi_descriptor_t* dvbpsi_EITEventAddDescriptor(
*****************************************************************************
* Generate EIT sections based on the dvbpsi_eit_t structure.
*****************************************************************************/
dvbpsi_psi_section_t
*
dvbpsi_GenEITSections
(
dvbpsi_eit_t
*
p_eit
,
/*!
* \fn dvbpsi_psi_section_t *dvbpsi_GenEITSections(dvbpsi_t *p_dvbpsi, dvbpsi_eit_t *p_eit,
* uint8_t i_table_id);
* \brief Generate a EIT section based on the information provided in p_eit.
* \param p_dvbpsi pointer to Subtable demultiplexor to which the EIT decoder is attached.
* \param p_eit pointer to EIT information to include in the PSI secion
* \param i_table_id the EIT table id to use
* \return a pointer to a new PSI section
*/
dvbpsi_psi_section_t
*
dvbpsi_GenEITSections
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_eit_t
*
p_eit
,
uint8_t
i_table_id
);
#ifdef __cplusplus
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment