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
9e0d751e
Commit
9e0d751e
authored
May 19, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/tables/tot.c: Cleanup
- remove b_append from dvbpsi_GatherTOTSections()
parent
0eebb7f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
35 deletions
+28
-35
src/tables/tot.c
src/tables/tot.c
+28
-35
No files found.
src/tables/tot.c
View file @
9e0d751e
/*****************************************************************************
* tot.c: TDT/TOT decoder/generator
*----------------------------------------------------------------------------
* Copyright (C) 2001-201
0
VideoLAN
* Copyright (C) 2001-201
1
VideoLAN
* $Id$
*
* Authors: Johann Hanne
...
...
@@ -200,8 +200,6 @@ void dvbpsi_GatherTOTSections(dvbpsi_t* p_dvbpsi,
dvbpsi_tot_decoder_t
*
p_tot_decoder
=
(
dvbpsi_tot_decoder_t
*
)
p_private_decoder
;
int
b_append
=
1
;
dvbpsi_tot_t
*
p_building_tot
;
dvbpsi_debug
(
p_dvbpsi
,
"TDT/TOT decoder"
,
"got a section"
);
...
...
@@ -211,20 +209,19 @@ void dvbpsi_GatherTOTSections(dvbpsi_t* p_dvbpsi,
dvbpsi_error
(
p_dvbpsi
,
"TDT/TOT decoder"
,
"invalid section (table_id == 0x%02x)"
,
p_section
->
i_table_id
);
b_append
=
0
;
dvbpsi_DeletePSISections
(
p_section
);
return
;
}
if
(
b_append
&&
p_section
->
b_syntax_indicator
!=
false
)
if
(
p_section
->
b_syntax_indicator
!=
false
)
{
/* Invalid section_syntax_indicator */
dvbpsi_error
(
p_dvbpsi
,
"TDT/TOT decoder"
,
"invalid section (section_syntax_indicator != 0)"
);
b_append
=
0
;
dvbpsi_DeletePSISections
(
p_section
);
return
;
}
/* Now if b_append is true then we have a valid TDT/TOT section */
if
(
b_append
)
{
/* TS discontinuity check */
if
(
p_tot_decoder
->
b_discontinuity
)
{
...
...
@@ -233,6 +230,7 @@ void dvbpsi_GatherTOTSections(dvbpsi_t* p_dvbpsi,
p_tot_decoder
->
b_discontinuity
=
false
;
}
dvbpsi_tot_t
*
p_building_tot
;
p_building_tot
=
(
dvbpsi_tot_t
*
)
malloc
(
sizeof
(
dvbpsi_tot_t
));
if
(
p_building_tot
)
dvbpsi_InitTOT
(
p_building_tot
,
((
uint64_t
)
p_section
->
p_payload_start
[
0
]
<<
32
)
...
...
@@ -249,11 +247,6 @@ void dvbpsi_GatherTOTSections(dvbpsi_t* p_dvbpsi,
dvbpsi_DeletePSISections
(
p_section
);
/* signal the new TDT/TOT */
p_tot_decoder
->
pf_tot_callback
(
p_tot_decoder
->
p_cb_data
,
p_building_tot
);
}
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