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
ef2ef6d2
Commit
ef2ef6d2
authored
Apr 24, 2007
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* src/tables/eit.c: Simplify EIT table completion (thanks Johann).
parent
4899809e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
src/tables/eit.c
src/tables/eit.c
+14
-12
No files found.
src/tables/eit.c
View file @
ef2ef6d2
...
@@ -419,20 +419,22 @@ void dvbpsi_GatherEITSections(dvbpsi_decoder_t * p_psi_decoder,
...
@@ -419,20 +419,22 @@ void dvbpsi_GatherEITSections(dvbpsi_decoder_t * p_psi_decoder,
/* Check if we have all the sections */
/* Check if we have all the sections */
b_complete
=
0
;
b_complete
=
0
;
for
(
i
=
0
;
i
<=
p_eit_decoder
->
i_last_section_number
;
i
++
)
{
if
(
!
p_eit_decoder
->
ap_sections
[
i
])
break
;
if
(
i
==
p_eit_decoder
->
i_last_section_number
)
b_complete
=
1
;
}
/* As there may be gaps in the section_number fields (see below), we
/* As there may be gaps in the section_number fields (see below), we
* have to wait until we have received a section_number twice - this
* have to wait until we have received a section_number twice or
* is the only way to be sure that a complete table has been sent! */
* until we have a received a section_number which is
if
(
!
b_complete
&&
* first_received_section_number - 1;
p_section
->
i_number
==
p_eit_decoder
->
i_first_received_section_number
)
* if the first_received_section_number is 0, it's enough to wait
* until the last_section_number has been received;
* this is the only way to be sure that a complete table has been
* sent! */
if
((
p_eit_decoder
->
i_first_received_section_number
>
0
&&
(
p_section
->
i_number
==
p_eit_decoder
->
i_first_received_section_number
||
p_section
->
i_number
==
p_eit_decoder
->
i_first_received_section_number
-
1
))
||
(
p_eit_decoder
->
i_first_received_section_number
==
0
&&
p_section
->
i_number
==
p_eit_decoder
->
i_last_section_number
))
{
{
for
(
i
=
0
;
i
<=
p_eit_decoder
->
i_last_section_number
;
i
++
)
for
(
i
=
0
;
i
<=
p_eit_decoder
->
i_last_section_number
;
i
++
)
{
{
...
...
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