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
551e2865
Commit
551e2865
authored
Jun 21, 2012
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New utility function dvbpsi_ReInitDecoder().
Add a function to reinit a decoder as is needed by PSI decoders.
parent
61a0d7c4
Changes
16
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
73 additions
and
179 deletions
+73
-179
src/dvbpsi.c
src/dvbpsi.c
+22
-0
src/dvbpsi.h
src/dvbpsi.h
+13
-0
src/tables/atsc_eit.c
src/tables/atsc_eit.c
+2
-12
src/tables/atsc_ett.c
src/tables/atsc_ett.c
+2
-12
src/tables/atsc_mgt.c
src/tables/atsc_mgt.c
+2
-12
src/tables/atsc_stt.c
src/tables/atsc_stt.c
+2
-12
src/tables/atsc_vct.c
src/tables/atsc_vct.c
+2
-12
src/tables/bat.c
src/tables/bat.c
+2
-12
src/tables/cat.c
src/tables/cat.c
+7
-17
src/tables/eit.c
src/tables/eit.c
+2
-13
src/tables/nit.c
src/tables/nit.c
+2
-12
src/tables/pat.c
src/tables/pat.c
+7
-17
src/tables/pmt.c
src/tables/pmt.c
+2
-12
src/tables/sdt.c
src/tables/sdt.c
+2
-12
src/tables/sis.c
src/tables/sis.c
+2
-12
src/tables/tot.c
src/tables/tot.c
+2
-12
No files found.
src/dvbpsi.c
View file @
551e2865
...
@@ -196,6 +196,28 @@ dvbpsi_decoder_t *dvbpsi_NewDecoder(dvbpsi_callback_gather_t pf_gather,
...
@@ -196,6 +196,28 @@ dvbpsi_decoder_t *dvbpsi_NewDecoder(dvbpsi_callback_gather_t pf_gather,
return
p_decoder
;
return
p_decoder
;
}
}
/*****************************************************************************
* dvbpsi_ReinitDecoder
*****************************************************************************/
void
dvbpsi_ReInitDecoder
(
dvbpsi_decoder_t
*
p_decoder
,
const
bool
b_force
)
{
assert
(
p_decoder
);
/* Force redecoding */
if
(
b_force
)
p_decoder
->
b_current_valid
=
false
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_decoder
->
ap_sections
[
i
]);
p_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
/*****************************************************************************
/*****************************************************************************
* dvbpsi_DeleteDecoder
* dvbpsi_DeleteDecoder
*****************************************************************************/
*****************************************************************************/
...
...
src/dvbpsi.h
View file @
551e2865
...
@@ -246,6 +246,19 @@ dvbpsi_decoder_t *dvbpsi_NewDecoder(dvbpsi_callback_gather_t pf_gather,
...
@@ -246,6 +246,19 @@ dvbpsi_decoder_t *dvbpsi_NewDecoder(dvbpsi_callback_gather_t pf_gather,
*/
*/
void
dvbpsi_DeleteDecoder
(
dvbpsi_decoder_t
*
p_decoder
);
void
dvbpsi_DeleteDecoder
(
dvbpsi_decoder_t
*
p_decoder
);
/*****************************************************************************
* dvbpsi_ReinitDecoder
*****************************************************************************/
/*!
* \fn void dvbpsi_ReInitDecoder(dvbpsi_decoder_t* p_decoder, const bool b_force);
* \brief Reinit a decoder.
* \param p_decoder pointer to dvbpsi_decoder_t with decoder
* \param b_force If 'b_force' is true then dvbpsi_decoder_t::b_current_valid
* is set to false, invalidating the current section.
* \return nothing
*/
void
dvbpsi_ReInitDecoder
(
dvbpsi_decoder_t
*
p_decoder
,
const
bool
b_force
);
/*****************************************************************************
/*****************************************************************************
* dvbpsi_HasDecoder
* dvbpsi_HasDecoder
*****************************************************************************/
*****************************************************************************/
...
...
src/tables/atsc_eit.c
View file @
551e2865
...
@@ -295,26 +295,16 @@ static void dvbpsi_ReInitEIT(dvbpsi_atsc_eit_decoder_t *p_decoder, const bool b_
...
@@ -295,26 +295,16 @@ static void dvbpsi_ReInitEIT(dvbpsi_atsc_eit_decoder_t *p_decoder, const bool b_
{
{
assert
(
p_decoder
);
assert
(
p_decoder
);
dvbpsi_ReInitDecoder
(
DVBPSI_DECODER
(
p_decoder
),
b_force
);
/* Force redecoding */
/* Force redecoding */
if
(
b_force
)
if
(
b_force
)
{
{
p_decoder
->
b_current_valid
=
false
;
/* Free structures */
/* Free structures */
if
(
p_decoder
->
p_building_eit
)
if
(
p_decoder
->
p_building_eit
)
dvbpsi_atsc_DeleteEIT
(
p_decoder
->
p_building_eit
);
dvbpsi_atsc_DeleteEIT
(
p_decoder
->
p_building_eit
);
}
}
p_decoder
->
p_building_eit
=
NULL
;
p_decoder
->
p_building_eit
=
NULL
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_decoder
->
ap_sections
[
i
]);
p_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
}
static
bool
dvbpsi_CheckEIT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_atsc_eit_decoder_t
*
p_decoder
,
static
bool
dvbpsi_CheckEIT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_atsc_eit_decoder_t
*
p_decoder
,
...
...
src/tables/atsc_ett.c
View file @
551e2865
...
@@ -227,26 +227,16 @@ static void dvbpsi_ReInitETT(dvbpsi_atsc_ett_decoder_t *p_decoder, const bool b_
...
@@ -227,26 +227,16 @@ static void dvbpsi_ReInitETT(dvbpsi_atsc_ett_decoder_t *p_decoder, const bool b_
{
{
assert
(
p_decoder
);
assert
(
p_decoder
);
dvbpsi_ReInitDecoder
(
DVBPSI_DECODER
(
p_decoder
),
b_force
);
/* Force redecoding */
/* Force redecoding */
if
(
b_force
)
if
(
b_force
)
{
{
p_decoder
->
b_current_valid
=
false
;
/* Free structures */
/* Free structures */
if
(
p_decoder
->
p_building_ett
)
if
(
p_decoder
->
p_building_ett
)
dvbpsi_atsc_DeleteETT
(
p_decoder
->
p_building_ett
);
dvbpsi_atsc_DeleteETT
(
p_decoder
->
p_building_ett
);
}
}
p_decoder
->
p_building_ett
=
NULL
;
p_decoder
->
p_building_ett
=
NULL
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_decoder
->
ap_sections
[
i
]);
p_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
}
static
bool
dvbpsi_CheckETT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_atsc_ett_decoder_t
*
p_decoder
,
static
bool
dvbpsi_CheckETT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_atsc_ett_decoder_t
*
p_decoder
,
...
...
src/tables/atsc_mgt.c
View file @
551e2865
...
@@ -325,26 +325,16 @@ static void dvbpsi_ReInitMGT(dvbpsi_atsc_mgt_decoder_t *p_decoder, const bool b_
...
@@ -325,26 +325,16 @@ static void dvbpsi_ReInitMGT(dvbpsi_atsc_mgt_decoder_t *p_decoder, const bool b_
{
{
assert
(
p_decoder
);
assert
(
p_decoder
);
dvbpsi_ReInitDecoder
(
DVBPSI_DECODER
(
p_decoder
),
b_force
);
/* Force redecoding */
/* Force redecoding */
if
(
b_force
)
if
(
b_force
)
{
{
p_decoder
->
b_current_valid
=
false
;
/* Free structures */
/* Free structures */
if
(
p_decoder
->
p_building_mgt
)
if
(
p_decoder
->
p_building_mgt
)
dvbpsi_atsc_DeleteMGT
(
p_decoder
->
p_building_mgt
);
dvbpsi_atsc_DeleteMGT
(
p_decoder
->
p_building_mgt
);
}
}
p_decoder
->
p_building_mgt
=
NULL
;
p_decoder
->
p_building_mgt
=
NULL
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_decoder
->
ap_sections
[
i
]);
p_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
}
static
bool
dvbpsi_CheckMGT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_atsc_mgt_decoder_t
*
p_decoder
,
static
bool
dvbpsi_CheckMGT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_atsc_mgt_decoder_t
*
p_decoder
,
...
...
src/tables/atsc_stt.c
View file @
551e2865
...
@@ -234,26 +234,16 @@ static void dvbpsi_ReInitSTT(dvbpsi_atsc_stt_decoder_t *p_decoder, const bool b_
...
@@ -234,26 +234,16 @@ static void dvbpsi_ReInitSTT(dvbpsi_atsc_stt_decoder_t *p_decoder, const bool b_
{
{
assert
(
p_decoder
);
assert
(
p_decoder
);
dvbpsi_ReInitDecoder
(
DVBPSI_DECODER
(
p_decoder
),
b_force
);
/* Force redecoding */
/* Force redecoding */
if
(
b_force
)
if
(
b_force
)
{
{
p_decoder
->
b_current_valid
=
false
;
/* Free structures */
/* Free structures */
if
(
p_decoder
->
p_building_stt
)
if
(
p_decoder
->
p_building_stt
)
dvbpsi_atsc_DeleteSTT
(
p_decoder
->
p_building_stt
);
dvbpsi_atsc_DeleteSTT
(
p_decoder
->
p_building_stt
);
}
}
p_decoder
->
p_building_stt
=
NULL
;
p_decoder
->
p_building_stt
=
NULL
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_decoder
->
ap_sections
[
i
]);
p_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
}
static
bool
dvbpsi_CheckSTT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_atsc_stt_decoder_t
*
p_decoder
,
static
bool
dvbpsi_CheckSTT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_atsc_stt_decoder_t
*
p_decoder
,
...
...
src/tables/atsc_vct.c
View file @
551e2865
...
@@ -364,26 +364,16 @@ static void dvbpsi_ReInitVCT(dvbpsi_atsc_vct_decoder_t *p_decoder, const bool b_
...
@@ -364,26 +364,16 @@ static void dvbpsi_ReInitVCT(dvbpsi_atsc_vct_decoder_t *p_decoder, const bool b_
{
{
assert
(
p_decoder
);
assert
(
p_decoder
);
dvbpsi_ReInitDecoder
(
DVBPSI_DECODER
(
p_decoder
),
b_force
);
/* Force redecoding */
/* Force redecoding */
if
(
b_force
)
if
(
b_force
)
{
{
p_decoder
->
b_current_valid
=
false
;
/* Free structures */
/* Free structures */
if
(
p_decoder
->
p_building_vct
)
if
(
p_decoder
->
p_building_vct
)
dvbpsi_atsc_DeleteVCT
(
p_decoder
->
p_building_vct
);
dvbpsi_atsc_DeleteVCT
(
p_decoder
->
p_building_vct
);
}
}
p_decoder
->
p_building_vct
=
NULL
;
p_decoder
->
p_building_vct
=
NULL
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_decoder
->
ap_sections
[
i
]);
p_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
}
static
bool
dvbpsi_CheckVCT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_atsc_vct_decoder_t
*
p_vct_decoder
,
static
bool
dvbpsi_CheckVCT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_atsc_vct_decoder_t
*
p_vct_decoder
,
...
...
src/tables/bat.c
View file @
551e2865
...
@@ -285,26 +285,16 @@ static void dvbpsi_ReInitBAT(dvbpsi_bat_decoder_t* p_decoder, const bool b_force
...
@@ -285,26 +285,16 @@ static void dvbpsi_ReInitBAT(dvbpsi_bat_decoder_t* p_decoder, const bool b_force
{
{
assert
(
p_decoder
);
assert
(
p_decoder
);
dvbpsi_ReInitDecoder
(
DVBPSI_DECODER
(
p_decoder
),
b_force
);
/* Force redecoding */
/* Force redecoding */
if
(
b_force
)
if
(
b_force
)
{
{
p_decoder
->
b_current_valid
=
false
;
/* Free structures */
/* Free structures */
if
(
p_decoder
->
p_building_bat
)
if
(
p_decoder
->
p_building_bat
)
dvbpsi_DeleteBAT
(
p_decoder
->
p_building_bat
);
dvbpsi_DeleteBAT
(
p_decoder
->
p_building_bat
);
}
}
p_decoder
->
p_building_bat
=
NULL
;
p_decoder
->
p_building_bat
=
NULL
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_decoder
->
ap_sections
[
i
]);
p_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
}
static
bool
dvbpsi_CheckBAT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_bat_decoder_t
*
p_bat_decoder
,
static
bool
dvbpsi_CheckBAT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_bat_decoder_t
*
p_bat_decoder
,
...
...
src/tables/cat.c
View file @
551e2865
...
@@ -172,30 +172,20 @@ dvbpsi_descriptor_t* dvbpsi_CATAddDescriptor(dvbpsi_cat_t* p_cat,
...
@@ -172,30 +172,20 @@ dvbpsi_descriptor_t* dvbpsi_CATAddDescriptor(dvbpsi_cat_t* p_cat,
}
}
/* */
/* */
static
void
dvbpsi_ReInitCAT
(
dvbpsi_cat_decoder_t
*
p_
cat_
decoder
,
const
bool
b_force
)
static
void
dvbpsi_ReInitCAT
(
dvbpsi_cat_decoder_t
*
p_decoder
,
const
bool
b_force
)
{
{
assert
(
p_cat_decoder
);
assert
(
p_decoder
);
dvbpsi_ReInitDecoder
(
DVBPSI_DECODER
(
p_decoder
),
b_force
);
/* Force redecoding */
/* Force redecoding */
if
(
b_force
)
if
(
b_force
)
{
{
p_cat_decoder
->
b_current_valid
=
false
;
/* Free structures */
/* Free structures */
if
(
p_cat_decoder
->
p_building_cat
)
if
(
p_decoder
->
p_building_cat
)
dvbpsi_DeleteCAT
(
p_cat_decoder
->
p_building_cat
);
dvbpsi_DeleteCAT
(
p_decoder
->
p_building_cat
);
}
p_cat_decoder
->
p_building_cat
=
NULL
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_cat_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_cat_decoder
->
ap_sections
[
i
]);
p_cat_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
p_decoder
->
p_building_cat
=
NULL
;
}
}
static
bool
dvbpsi_CheckCAT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_psi_section_t
*
p_section
)
static
bool
dvbpsi_CheckCAT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_psi_section_t
*
p_section
)
...
...
src/tables/eit.c
View file @
551e2865
...
@@ -263,26 +263,15 @@ static void dvbpsi_ReInitEIT(dvbpsi_eit_decoder_t* p_decoder, const bool b_force
...
@@ -263,26 +263,15 @@ static void dvbpsi_ReInitEIT(dvbpsi_eit_decoder_t* p_decoder, const bool b_force
{
{
assert
(
p_decoder
);
assert
(
p_decoder
);
/* Force redecoding */
dvbpsi_ReInitDecoder
(
DVBPSI_DECODER
(
p_decoder
),
b_force
);
if
(
b_force
)
if
(
b_force
)
{
{
p_decoder
->
b_current_valid
=
false
;
/* Free structures */
/* Free structures */
if
(
p_decoder
->
p_building_eit
)
if
(
p_decoder
->
p_building_eit
)
dvbpsi_DeleteEIT
(
p_decoder
->
p_building_eit
);
dvbpsi_DeleteEIT
(
p_decoder
->
p_building_eit
);
}
}
p_decoder
->
p_building_eit
=
NULL
;
p_decoder
->
p_building_eit
=
NULL
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_decoder
->
ap_sections
[
i
]);
p_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
}
static
bool
dvbpsi_CheckEIT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_eit_decoder_t
*
p_eit_decoder
,
static
bool
dvbpsi_CheckEIT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_eit_decoder_t
*
p_eit_decoder
,
...
...
src/tables/nit.c
View file @
551e2865
...
@@ -282,26 +282,16 @@ static void dvbpsi_ReInitNIT(dvbpsi_nit_decoder_t* p_decoder, const bool b_force
...
@@ -282,26 +282,16 @@ static void dvbpsi_ReInitNIT(dvbpsi_nit_decoder_t* p_decoder, const bool b_force
{
{
assert
(
p_decoder
);
assert
(
p_decoder
);
dvbpsi_ReInitDecoder
(
DVBPSI_DECODER
(
p_decoder
),
b_force
);
/* Force redecoding */
/* Force redecoding */
if
(
b_force
)
if
(
b_force
)
{
{
p_decoder
->
b_current_valid
=
false
;
/* Free structures */
/* Free structures */
if
(
p_decoder
->
p_building_nit
)
if
(
p_decoder
->
p_building_nit
)
dvbpsi_DeleteNIT
(
p_decoder
->
p_building_nit
);
dvbpsi_DeleteNIT
(
p_decoder
->
p_building_nit
);
}
}
p_decoder
->
p_building_nit
=
NULL
;
p_decoder
->
p_building_nit
=
NULL
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_decoder
->
ap_sections
[
i
]);
p_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
}
static
bool
dvbpsi_CheckNIT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_nit_decoder_t
*
p_nit_decoder
,
static
bool
dvbpsi_CheckNIT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_nit_decoder_t
*
p_nit_decoder
,
...
...
src/tables/pat.c
View file @
551e2865
...
@@ -183,30 +183,20 @@ dvbpsi_pat_program_t* dvbpsi_PATAddProgram(dvbpsi_pat_t* p_pat,
...
@@ -183,30 +183,20 @@ dvbpsi_pat_program_t* dvbpsi_PATAddProgram(dvbpsi_pat_t* p_pat,
}
}
/* */
/* */
static
void
dvbpsi_ReInitPAT
(
dvbpsi_pat_decoder_t
*
p_
pat_
decoder
,
const
bool
b_force
)
static
void
dvbpsi_ReInitPAT
(
dvbpsi_pat_decoder_t
*
p_decoder
,
const
bool
b_force
)
{
{
assert
(
p_pat_decoder
);
assert
(
p_decoder
);
dvbpsi_ReInitDecoder
(
DVBPSI_DECODER
(
p_decoder
),
b_force
);
/* Force redecoding */
/* Force redecoding */
if
(
b_force
)
if
(
b_force
)
{
{
p_pat_decoder
->
b_current_valid
=
false
;
/* Free structures */
/* Free structures */
if
(
p_pat_decoder
->
p_building_pat
)
if
(
p_decoder
->
p_building_pat
)
dvbpsi_DeletePAT
(
p_pat_decoder
->
p_building_pat
);
dvbpsi_DeletePAT
(
p_decoder
->
p_building_pat
);
}
p_pat_decoder
->
p_building_pat
=
NULL
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_pat_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_pat_decoder
->
ap_sections
[
i
]);
p_pat_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
p_decoder
->
p_building_pat
=
NULL
;
}
}
static
bool
dvbpsi_CheckPAT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_psi_section_t
*
p_section
)
static
bool
dvbpsi_CheckPAT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_psi_section_t
*
p_section
)
...
...
src/tables/pmt.c
View file @
551e2865
...
@@ -249,26 +249,16 @@ static void dvbpsi_ReInitPMT(dvbpsi_pmt_decoder_t* p_decoder, const bool b_force
...
@@ -249,26 +249,16 @@ static void dvbpsi_ReInitPMT(dvbpsi_pmt_decoder_t* p_decoder, const bool b_force
{
{
assert
(
p_decoder
);
assert
(
p_decoder
);
dvbpsi_ReInitDecoder
(
DVBPSI_DECODER
(
p_decoder
),
b_force
);
/* Force redecoding */
/* Force redecoding */
if
(
b_force
)
if
(
b_force
)
{
{
p_decoder
->
b_current_valid
=
false
;
/* Free structures */
/* Free structures */
if
(
p_decoder
->
p_building_pmt
)
if
(
p_decoder
->
p_building_pmt
)
dvbpsi_DeletePMT
(
p_decoder
->
p_building_pmt
);
dvbpsi_DeletePMT
(
p_decoder
->
p_building_pmt
);
}
}
p_decoder
->
p_building_pmt
=
NULL
;
p_decoder
->
p_building_pmt
=
NULL
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_decoder
->
ap_sections
[
i
]);
p_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
}
static
bool
dvbpsi_CheckPMT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_psi_section_t
*
p_section
)
static
bool
dvbpsi_CheckPMT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_psi_section_t
*
p_section
)
...
...
src/tables/sdt.c
View file @
551e2865
...
@@ -264,26 +264,16 @@ static void dvbpsi_ReInitSDT(dvbpsi_sdt_decoder_t* p_decoder, const bool b_force
...
@@ -264,26 +264,16 @@ static void dvbpsi_ReInitSDT(dvbpsi_sdt_decoder_t* p_decoder, const bool b_force
{
{
assert
(
p_decoder
);
assert
(
p_decoder
);
dvbpsi_ReInitDecoder
(
DVBPSI_DECODER
(
p_decoder
),
b_force
);
/* Force redecoding */
/* Force redecoding */
if
(
b_force
)
if
(
b_force
)
{
{
p_decoder
->
b_current_valid
=
false
;
/* Free structures */
/* Free structures */
if
(
p_decoder
->
p_building_sdt
)
if
(
p_decoder
->
p_building_sdt
)
dvbpsi_DeleteSDT
(
p_decoder
->
p_building_sdt
);
dvbpsi_DeleteSDT
(
p_decoder
->
p_building_sdt
);
}
}
p_decoder
->
p_building_sdt
=
NULL
;
p_decoder
->
p_building_sdt
=
NULL
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_decoder
->
ap_sections
[
i
]);
p_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
}
static
bool
dvbpsi_CheckSDT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_sdt_decoder_t
*
p_sdt_decoder
,
static
bool
dvbpsi_CheckSDT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_sdt_decoder_t
*
p_sdt_decoder
,
...
...
src/tables/sis.c
View file @
551e2865
...
@@ -244,26 +244,16 @@ static void dvbpsi_ReInitSIS(dvbpsi_sis_decoder_t* p_decoder, const bool b_force
...
@@ -244,26 +244,16 @@ static void dvbpsi_ReInitSIS(dvbpsi_sis_decoder_t* p_decoder, const bool b_force
{
{
assert
(
p_decoder
);
assert
(
p_decoder
);
dvbpsi_ReInitDecoder
(
DVBPSI_DECODER
(
p_decoder
),
b_force
);
/* Force redecoding */
/* Force redecoding */
if
(
b_force
)
if
(
b_force
)
{
{
p_decoder
->
b_current_valid
=
false
;
/* Free structures */
/* Free structures */
if
(
p_decoder
->
p_building_sis
)
if
(
p_decoder
->
p_building_sis
)
dvbpsi_DeleteSIS
(
p_decoder
->
p_building_sis
);
dvbpsi_DeleteSIS
(
p_decoder
->
p_building_sis
);
}
}
p_decoder
->
p_building_sis
=
NULL
;
p_decoder
->
p_building_sis
=
NULL
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_decoder
->
ap_sections
[
i
]);
p_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
}
static
bool
dvbpsi_CheckSIS
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_sis_decoder_t
*
p_sis_decoder
,
static
bool
dvbpsi_CheckSIS
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_sis_decoder_t
*
p_sis_decoder
,
...
...
src/tables/tot.c
View file @
551e2865
...
@@ -224,26 +224,16 @@ static void dvbpsi_ReInitTOT(dvbpsi_tot_decoder_t* p_decoder, const bool b_force
...
@@ -224,26 +224,16 @@ static void dvbpsi_ReInitTOT(dvbpsi_tot_decoder_t* p_decoder, const bool b_force
{
{
assert
(
p_decoder
);
assert
(
p_decoder
);
dvbpsi_ReInitDecoder
(
DVBPSI_DECODER
(
p_decoder
),
b_force
);
/* Force redecoding */
/* Force redecoding */
if
(
b_force
)
if
(
b_force
)
{
{
p_decoder
->
b_current_valid
=
false
;
/* Free structures */
/* Free structures */
if
(
p_decoder
->
p_building_tot
)
if
(
p_decoder
->
p_building_tot
)
dvbpsi_DeleteTOT
(
p_decoder
->
p_building_tot
);
dvbpsi_DeleteTOT
(
p_decoder
->
p_building_tot
);
}
}
p_decoder
->
p_building_tot
=
NULL
;
p_decoder
->
p_building_tot
=
NULL
;
/* Clear the section array */
for
(
unsigned
int
i
=
0
;
i
<=
255
;
i
++
)
{
if
(
p_decoder
->
ap_sections
[
i
]
!=
NULL
)
{
dvbpsi_DeletePSISections
(
p_decoder
->
ap_sections
[
i
]);
p_decoder
->
ap_sections
[
i
]
=
NULL
;
}
}
}
}
static
bool
dvbpsi_CheckTOT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_tot_decoder_t
*
p_tot_decoder
,
static
bool
dvbpsi_CheckTOT
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_tot_decoder_t
*
p_tot_decoder
,
...
...
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