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
ffa65b4e
Commit
ffa65b4e
authored
May 19, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/tables/cat.c: Cleanup
Remove b_append from dvbpsi_GatherCATSections()
parent
9e0d751e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
81 additions
and
94 deletions
+81
-94
src/tables/cat.c
src/tables/cat.c
+81
-94
No files found.
src/tables/cat.c
View file @
ffa65b4e
...
...
@@ -166,7 +166,6 @@ void dvbpsi_GatherCATSections(dvbpsi_t *p_dvbpsi,
dvbpsi_cat_decoder_t
*
p_cat_decoder
=
(
dvbpsi_cat_decoder_t
*
)
p_dvbpsi
->
p_private
;
bool
b_append
=
true
;
bool
b_reinit
=
false
;
if
(
p_section
->
i_table_id
!=
0x01
)
...
...
@@ -179,7 +178,7 @@ void dvbpsi_GatherCATSections(dvbpsi_t *p_dvbpsi,
return
;
}
if
(
b_append
&&
!
p_section
->
b_syntax_indicator
)
if
(
!
p_section
->
b_syntax_indicator
)
{
/* Invalid section_syntax_indicator */
dvbpsi_error
(
p_dvbpsi
,
"CAT decoder"
,
...
...
@@ -195,8 +194,6 @@ void dvbpsi_GatherCATSections(dvbpsi_t *p_dvbpsi,
p_section
->
i_number
,
p_section
->
i_last_number
,
p_section
->
b_current_next
);
if
(
b_append
)
{
/* TS discontinuity check */
if
(
p_cat_decoder
->
b_discontinuity
)
{
...
...
@@ -216,8 +213,7 @@ void dvbpsi_GatherCATSections(dvbpsi_t *p_dvbpsi,
" whereas no discontinuity has occured"
);
b_reinit
=
true
;
}
else
if
(
p_cat_decoder
->
i_last_section_number
!=
p_section
->
i_last_number
)
else
if
(
p_cat_decoder
->
i_last_section_number
!=
p_section
->
i_last_number
)
{
/* last_section_number */
dvbpsi_error
(
p_dvbpsi
,
"CAT decoder"
,
...
...
@@ -239,7 +235,6 @@ void dvbpsi_GatherCATSections(dvbpsi_t *p_dvbpsi,
}
}
}
}
/* Reinit the decoder if wanted */
if
(
b_reinit
)
...
...
@@ -263,9 +258,6 @@ void dvbpsi_GatherCATSections(dvbpsi_t *p_dvbpsi,
}
}
/* Append the section to the list if wanted */
if
(
b_append
)
{
int
b_complete
=
false
;
/* Initialize the structures if it's the first section received */
...
...
@@ -304,7 +296,7 @@ void dvbpsi_GatherCATSections(dvbpsi_t *p_dvbpsi,
{
/* Save the current information */
p_cat_decoder
->
current_cat
=
*
p_cat_decoder
->
p_building_cat
;
p_cat_decoder
->
b_current_valid
=
1
;
p_cat_decoder
->
b_current_valid
=
true
;
/* Chain the sections */
if
(
p_cat_decoder
->
i_last_section_number
)
{
...
...
@@ -324,11 +316,6 @@ void dvbpsi_GatherCATSections(dvbpsi_t *p_dvbpsi,
for
(
unsigned
int
i
=
0
;
i
<=
p_cat_decoder
->
i_last_section_number
;
i
++
)
p_cat_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
else
{
dvbpsi_DeletePSISections
(
p_section
);
}
}
/*****************************************************************************
...
...
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