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
85086925
Commit
85086925
authored
Jun 13, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
src/tables/*: initialize to NULL.
Initialize freed sections with dvbpsi_DeletePSISections() to NULL.
parent
0400d4db
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
0 deletions
+9
-0
src/tables/cat.c
src/tables/cat.c
+1
-0
src/tables/eit.c
src/tables/eit.c
+1
-0
src/tables/nit.c
src/tables/nit.c
+1
-0
src/tables/pat.c
src/tables/pat.c
+1
-0
src/tables/pmt.c
src/tables/pmt.c
+1
-0
src/tables/sdt.c
src/tables/sdt.c
+4
-0
No files found.
src/tables/cat.c
View file @
85086925
...
...
@@ -308,6 +308,7 @@ void dvbpsi_GatherCATSections(dvbpsi_t *p_dvbpsi,
p_cat_decoder
->
ap_sections
[
0
]);
/* Delete the sections */
dvbpsi_DeletePSISections
(
p_cat_decoder
->
ap_sections
[
0
]);
p_cat_decoder
->
ap_sections
[
0
]
=
NULL
;
/* signal the new CAT */
p_cat_decoder
->
pf_cat_callback
(
p_cat_decoder
->
p_cb_data
,
p_cat_decoder
->
p_building_cat
);
...
...
src/tables/eit.c
View file @
85086925
...
...
@@ -460,6 +460,7 @@ void dvbpsi_GatherEITSections(dvbpsi_t *p_dvbpsi, void *p_private_decoder,
/* Delete the sections */
dvbpsi_DeletePSISections
(
p_eit_decoder
->
ap_sections
[
0
]);
p_eit_decoder
->
ap_sections
[
0
]
=
NULL
;
/* signal the new EIT */
p_eit_decoder
->
pf_eit_callback
(
p_eit_decoder
->
p_cb_data
,
p_eit_decoder
->
p_building_eit
);
...
...
src/tables/nit.c
View file @
85086925
...
...
@@ -436,6 +436,7 @@ void dvbpsi_GatherNITSections(dvbpsi_t *p_dvbpsi,
p_nit_decoder
->
ap_sections
[
0
]);
/* Delete the sections */
dvbpsi_DeletePSISections
(
p_nit_decoder
->
ap_sections
[
0
]);
p_nit_decoder
->
ap_sections
[
0
]
=
NULL
;
/* signal the new NIT */
p_nit_decoder
->
pf_nit_callback
(
p_nit_decoder
->
p_cb_data
,
p_nit_decoder
->
p_building_nit
);
...
...
src/tables/pat.c
View file @
85086925
...
...
@@ -339,6 +339,7 @@ void dvbpsi_GatherPATSections(dvbpsi_t* p_dvbpsi, dvbpsi_psi_section_t* p_sectio
p_pat_decoder
->
ap_sections
[
0
]);
/* Delete the sections */
dvbpsi_DeletePSISections
(
p_pat_decoder
->
ap_sections
[
0
]);
p_pat_decoder
->
ap_sections
[
0
]
=
NULL
;
/* signal the new PAT */
p_pat_decoder
->
pf_pat_callback
(
p_pat_decoder
->
p_cb_data
,
p_pat_decoder
->
p_building_pat
);
...
...
src/tables/pmt.c
View file @
85086925
...
...
@@ -402,6 +402,7 @@ void dvbpsi_GatherPMTSections(dvbpsi_t *p_dvbpsi, dvbpsi_psi_section_t* p_sectio
p_pmt_decoder
->
ap_sections
[
0
]);
/* Delete the sections */
dvbpsi_DeletePSISections
(
p_pmt_decoder
->
ap_sections
[
0
]);
p_pmt_decoder
->
ap_sections
[
0
]
=
NULL
;
/* signal the new PMT */
p_pmt_decoder
->
pf_pmt_callback
(
p_pmt_decoder
->
p_cb_data
,
p_pmt_decoder
->
p_building_pmt
);
...
...
src/tables/sdt.c
View file @
85086925
...
...
@@ -137,7 +137,10 @@ void dvbpsi_DetachSDT(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extensi
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_sdt_decoder
->
ap_sections
[
i
])
{
dvbpsi_DeletePSISections
(
p_sdt_decoder
->
ap_sections
[
i
]);
p_sdt_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
free
(
p_subdec
->
p_cb_data
);
...
...
@@ -409,6 +412,7 @@ void dvbpsi_GatherSDTSections(dvbpsi_t *p_dvbpsi,
p_sdt_decoder
->
ap_sections
[
0
]);
/* Delete the sections */
dvbpsi_DeletePSISections
(
p_sdt_decoder
->
ap_sections
[
0
]);
p_sdt_decoder
->
ap_sections
[
0
]
=
NULL
;
/* signal the new SDT */
p_sdt_decoder
->
pf_sdt_callback
(
p_sdt_decoder
->
p_cb_data
,
p_sdt_decoder
->
p_building_sdt
);
...
...
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