Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bitstream
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
bitstream
Commits
a2cc3895
Commit
a2cc3895
authored
Apr 10, 2011
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dvb_print_si.c: Compare whole tables instead of just the version. Also fix rare segfault.
parent
a0c759a9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
10 deletions
+8
-10
examples/dvb_print_si.c
examples/dvb_print_si.c
+8
-10
No files found.
examples/dvb_print_si.c
View file @
a2cc3895
...
...
@@ -138,9 +138,8 @@ static void handle_pat(void)
uint8_t
i
;
if
(
psi_table_validate
(
pp_current_pat_sections
)
&&
psi_table_get_version
(
pp_current_pat_sections
)
==
psi_table_get_version
(
pp_next_pat_sections
))
{
/* Same version PAT. Shortcut. */
psi_table_compare
(
pp_current_pat_sections
,
pp_next_pat_sections
))
{
/* Identical PAT. Shortcut. */
psi_table_free
(
pp_next_pat_sections
);
psi_table_init
(
pp_next_pat_sections
);
return
;
...
...
@@ -235,6 +234,7 @@ static void handle_pat(void)
if
(
pp_sids
[
i_pmt
]
->
i_sid
==
i_sid
)
{
pp_sids
[
i_pmt
]
->
i_sid
=
0
;
free
(
pp_sids
[
i_pmt
]
->
p_current_pmt
);
pp_sids
[
i_pmt
]
->
p_current_pmt
=
NULL
;
break
;
}
}
...
...
@@ -326,8 +326,8 @@ static void handle_pmt(uint16_t i_pid, uint8_t *p_pmt)
}
if
(
p_sid
->
p_current_pmt
!=
NULL
&&
psi_
get_version
(
p_sid
->
p_current_pmt
)
==
psi_get_version
(
p_pmt
))
{
/*
Same version
PMT. Shortcut. */
psi_
compare
(
p_sid
->
p_current_pmt
,
p_pmt
))
{
/*
Identical
PMT. Shortcut. */
free
(
p_pmt
);
return
;
}
...
...
@@ -344,8 +344,7 @@ static void handle_pmt(uint16_t i_pid, uint8_t *p_pmt)
static
void
handle_nit
(
void
)
{
if
(
psi_table_validate
(
pp_current_nit_sections
)
&&
psi_table_get_version
(
pp_current_nit_sections
)
==
psi_table_get_version
(
pp_next_nit_sections
))
{
psi_table_compare
(
pp_current_nit_sections
,
pp_next_nit_sections
))
{
/* Same version NIT. Shortcut. */
psi_table_free
(
pp_next_nit_sections
);
psi_table_init
(
pp_next_nit_sections
);
...
...
@@ -401,9 +400,8 @@ static void handle_nit_section(uint16_t i_pid, uint8_t *p_section)
static
void
handle_sdt
(
void
)
{
if
(
psi_table_validate
(
pp_current_sdt_sections
)
&&
psi_table_get_version
(
pp_current_sdt_sections
)
==
psi_table_get_version
(
pp_next_sdt_sections
))
{
/* Same version SDT. Shortcut. */
psi_table_compare
(
pp_current_sdt_sections
,
pp_next_sdt_sections
))
{
/* Identical SDT. Shortcut. */
psi_table_free
(
pp_next_sdt_sections
);
psi_table_init
(
pp_next_sdt_sections
);
return
;
...
...
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