Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dvblast
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
dvblast
Commits
e93aee8d
Commit
e93aee8d
authored
Dec 24, 2011
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use binary diff instead of PSI version numbers
parent
4a4637b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
132 deletions
+58
-132
demux.c
demux.c
+58
-132
No files found.
demux.c
View file @
e93aee8d
...
@@ -391,7 +391,8 @@ static void demux_Handle( block_t *p_ts )
...
@@ -391,7 +391,8 @@ static void demux_Handle( block_t *p_ts )
p_pids
[
i_pid
].
i_last_cc
=
i_cc
;
p_pids
[
i_pid
].
i_last_cc
=
i_cc
;
if
(
b_enable_emm
)
{
if
(
b_enable_emm
)
{
for
(
i
=
0
;
i
<
i_nb_outputs
;
i
++
)
for
(
i
=
0
;
i
<
i_nb_outputs
;
i
++
)
{
{
output_t
*
p_output
=
pp_outputs
[
i
];
output_t
*
p_output
=
pp_outputs
[
i
];
...
@@ -696,13 +697,13 @@ static void SetPID_EMM( uint16_t i_pid )
...
@@ -696,13 +697,13 @@ static void SetPID_EMM( uint16_t i_pid )
static
void
UnsetPID
(
uint16_t
i_pid
)
static
void
UnsetPID
(
uint16_t
i_pid
)
{
{
p_pids
[
i_pid
].
i_refcount
--
;
p_pids
[
i_pid
].
i_refcount
--
;
p_pids
[
i_pid
].
b_emm
=
false
;
if
(
!
b_budget_mode
&&
!
p_pids
[
i_pid
].
i_refcount
if
(
!
b_budget_mode
&&
!
p_pids
[
i_pid
].
i_refcount
&&
p_pids
[
i_pid
].
i_demux_fd
!=
-
1
)
&&
p_pids
[
i_pid
].
i_demux_fd
!=
-
1
)
{
{
pf_UnsetFilter
(
p_pids
[
i_pid
].
i_demux_fd
,
i_pid
);
pf_UnsetFilter
(
p_pids
[
i_pid
].
i_demux_fd
,
i_pid
);
p_pids
[
i_pid
].
i_demux_fd
=
-
1
;
p_pids
[
i_pid
].
i_demux_fd
=
-
1
;
p_pids
[
i_pid
].
b_emm
=
false
;
}
}
}
}
...
@@ -1790,7 +1791,7 @@ static void demux_Print(void *_unused, const char *psz_format, ...)
...
@@ -1790,7 +1791,7 @@ static void demux_Print(void *_unused, const char *psz_format, ...)
*****************************************************************************/
*****************************************************************************/
static
void
HandlePAT
(
mtime_t
i_dts
)
static
void
HandlePAT
(
mtime_t
i_dts
)
{
{
bool
b_
display
,
b_
change
=
false
;
bool
b_change
=
false
;
PSI_TABLE_DECLARE
(
pp_old_pat_sections
);
PSI_TABLE_DECLARE
(
pp_old_pat_sections
);
uint8_t
i_last_section
=
psi_table_get_lastsection
(
pp_next_pat_sections
);
uint8_t
i_last_section
=
psi_table_get_lastsection
(
pp_next_pat_sections
);
uint8_t
i
;
uint8_t
i
;
...
@@ -1819,10 +1820,6 @@ static void HandlePAT( mtime_t i_dts )
...
@@ -1819,10 +1820,6 @@ static void HandlePAT( mtime_t i_dts )
goto
out_pat
;
goto
out_pat
;
}
}
b_display
=
!
psi_table_validate
(
pp_current_pat_sections
)
||
psi_table_get_version
(
pp_current_pat_sections
)
!=
psi_table_get_version
(
pp_next_pat_sections
);
/* Switch tables. */
/* Switch tables. */
psi_table_copy
(
pp_old_pat_sections
,
pp_current_pat_sections
);
psi_table_copy
(
pp_old_pat_sections
,
pp_current_pat_sections
);
psi_table_copy
(
pp_current_pat_sections
,
pp_next_pat_sections
);
psi_table_copy
(
pp_current_pat_sections
,
pp_next_pat_sections
);
...
@@ -1832,7 +1829,7 @@ static void HandlePAT( mtime_t i_dts )
...
@@ -1832,7 +1829,7 @@ static void HandlePAT( mtime_t i_dts )
||
psi_table_get_tableidext
(
pp_current_pat_sections
)
||
psi_table_get_tableidext
(
pp_current_pat_sections
)
!=
psi_table_get_tableidext
(
pp_old_pat_sections
)
)
!=
psi_table_get_tableidext
(
pp_old_pat_sections
)
)
{
{
b_
display
=
b_
change
=
true
;
b_change
=
true
;
UpdateTSID
();
UpdateTSID
();
/* This will trigger a universal reset of everything. */
/* This will trigger a universal reset of everything. */
}
}
...
@@ -1867,7 +1864,6 @@ static void HandlePAT( mtime_t i_dts )
...
@@ -1867,7 +1864,6 @@ static void HandlePAT( mtime_t i_dts )
||
b_change
)
||
b_change
)
{
{
int
i_pmt
;
int
i_pmt
;
b_display
=
true
;
if
(
p_old_program
!=
NULL
)
if
(
p_old_program
!=
NULL
)
DeleteProgram
(
i_sid
,
patn_get_pid
(
p_old_program
)
);
DeleteProgram
(
i_sid
,
patn_get_pid
(
p_old_program
)
);
...
@@ -1917,7 +1913,6 @@ static void HandlePAT( mtime_t i_dts )
...
@@ -1917,7 +1913,6 @@ static void HandlePAT( mtime_t i_dts )
if
(
pat_table_find_program
(
pp_current_pat_sections
,
i_sid
)
if
(
pat_table_find_program
(
pp_current_pat_sections
,
i_sid
)
==
NULL
)
==
NULL
)
{
{
b_display
=
true
;
DeleteProgram
(
i_sid
,
i_pid
);
DeleteProgram
(
i_sid
,
i_pid
);
UpdatePAT
(
i_sid
);
UpdatePAT
(
i_sid
);
}
}
...
@@ -1927,8 +1922,6 @@ static void HandlePAT( mtime_t i_dts )
...
@@ -1927,8 +1922,6 @@ static void HandlePAT( mtime_t i_dts )
psi_table_free
(
pp_old_pat_sections
);
psi_table_free
(
pp_old_pat_sections
);
}
}
if
(
b_display
)
{
pat_table_print
(
pp_current_pat_sections
,
msg_Dbg
,
NULL
,
PRINT_TEXT
);
pat_table_print
(
pp_current_pat_sections
,
msg_Dbg
,
NULL
,
PRINT_TEXT
);
if
(
i_print_type
!=
-
1
)
if
(
i_print_type
!=
-
1
)
{
{
...
@@ -1937,7 +1930,6 @@ static void HandlePAT( mtime_t i_dts )
...
@@ -1937,7 +1930,6 @@ static void HandlePAT( mtime_t i_dts )
if
(
i_print_type
==
PRINT_XML
)
if
(
i_print_type
==
PRINT_XML
)
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
}
out_pat:
out_pat:
SendPAT
(
i_dts
);
SendPAT
(
i_dts
);
...
@@ -1974,7 +1966,6 @@ static void HandlePATSection( uint16_t i_pid, uint8_t *p_section,
...
@@ -1974,7 +1966,6 @@ static void HandlePATSection( uint16_t i_pid, uint8_t *p_section,
*****************************************************************************/
*****************************************************************************/
static
void
HandleCAT
(
mtime_t
i_dts
)
static
void
HandleCAT
(
mtime_t
i_dts
)
{
{
bool
b_display
,
b_change
=
false
;
PSI_TABLE_DECLARE
(
pp_old_cat_sections
);
PSI_TABLE_DECLARE
(
pp_old_cat_sections
);
uint8_t
i_last_section
=
psi_table_get_lastsection
(
pp_next_cat_sections
);
uint8_t
i_last_section
=
psi_table_get_lastsection
(
pp_next_cat_sections
);
uint8_t
i_last_section2
;
uint8_t
i_last_section2
;
...
@@ -2006,24 +1997,11 @@ static void HandleCAT( mtime_t i_dts )
...
@@ -2006,24 +1997,11 @@ static void HandleCAT( mtime_t i_dts )
goto
out_cat
;
goto
out_cat
;
}
}
b_display
=
!
psi_table_validate
(
pp_current_cat_sections
)
||
psi_table_get_version
(
pp_current_cat_sections
)
!=
psi_table_get_version
(
pp_next_cat_sections
);
/* Switch tables. */
/* Switch tables. */
psi_table_copy
(
pp_old_cat_sections
,
pp_current_cat_sections
);
psi_table_copy
(
pp_old_cat_sections
,
pp_current_cat_sections
);
psi_table_copy
(
pp_current_cat_sections
,
pp_next_cat_sections
);
psi_table_copy
(
pp_current_cat_sections
,
pp_next_cat_sections
);
psi_table_init
(
pp_next_cat_sections
);
psi_table_init
(
pp_next_cat_sections
);
if
(
!
psi_table_validate
(
pp_old_cat_sections
)
||
psi_table_get_tableidext
(
pp_current_cat_sections
)
!=
psi_table_get_tableidext
(
pp_old_cat_sections
)
)
{
b_display
=
b_change
=
true
;
}
if
(
b_change
)
{
for
(
i
=
0
;
i
<=
i_last_section
;
i
++
)
for
(
i
=
0
;
i
<=
i_last_section
;
i
++
)
{
{
uint8_t
*
p_section
=
psi_table_get_section
(
pp_current_cat_sections
,
i
);
uint8_t
*
p_section
=
psi_table_get_section
(
pp_current_cat_sections
,
i
);
...
@@ -2037,7 +2015,6 @@ static void HandleCAT( mtime_t i_dts )
...
@@ -2037,7 +2015,6 @@ static void HandleCAT( mtime_t i_dts )
SetPID_EMM
(
desc09_get_pid
(
p_desc
)
);
SetPID_EMM
(
desc09_get_pid
(
p_desc
)
);
}
}
}
}
}
if
(
psi_table_validate
(
pp_old_cat_sections
)
)
if
(
psi_table_validate
(
pp_old_cat_sections
)
)
{
{
...
@@ -2076,18 +2053,13 @@ static void HandleCAT( mtime_t i_dts )
...
@@ -2076,18 +2053,13 @@ static void HandleCAT( mtime_t i_dts )
}
}
if
(
!
pid_found
)
if
(
!
pid_found
)
{
UnsetPID
(
emm_pid
);
UnsetPID
(
emm_pid
);
b_display
=
true
;
}
}
}
}
}
psi_table_free
(
pp_old_cat_sections
);
psi_table_free
(
pp_old_cat_sections
);
}
}
if
(
b_display
)
{
cat_table_print
(
pp_current_cat_sections
,
msg_Dbg
,
NULL
,
PRINT_TEXT
);
cat_table_print
(
pp_current_cat_sections
,
msg_Dbg
,
NULL
,
PRINT_TEXT
);
if
(
i_print_type
!=
-
1
)
if
(
i_print_type
!=
-
1
)
{
{
...
@@ -2096,7 +2068,6 @@ static void HandleCAT( mtime_t i_dts )
...
@@ -2096,7 +2068,6 @@ static void HandleCAT( mtime_t i_dts )
if
(
i_print_type
==
PRINT_XML
)
if
(
i_print_type
==
PRINT_XML
)
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
}
out_cat:
out_cat:
return
;
return
;
...
@@ -2133,7 +2104,6 @@ static void HandleCATSection( uint16_t i_pid, uint8_t *p_section,
...
@@ -2133,7 +2104,6 @@ static void HandleCATSection( uint16_t i_pid, uint8_t *p_section,
*****************************************************************************/
*****************************************************************************/
static
void
HandlePMT
(
uint16_t
i_pid
,
uint8_t
*
p_pmt
,
mtime_t
i_dts
)
static
void
HandlePMT
(
uint16_t
i_pid
,
uint8_t
*
p_pmt
,
mtime_t
i_dts
)
{
{
bool
b_change
,
b_new
;
uint16_t
i_sid
=
pmt_get_program
(
p_pmt
);
uint16_t
i_sid
=
pmt_get_program
(
p_pmt
);
sid_t
*
p_sid
;
sid_t
*
p_sid
;
bool
b_needs_descrambling
,
b_needed_descrambling
,
b_is_selected
;
bool
b_needs_descrambling
,
b_needed_descrambling
,
b_is_selected
;
...
@@ -2206,11 +2176,8 @@ static void HandlePMT( uint16_t i_pid, uint8_t *p_pmt, mtime_t i_dts )
...
@@ -2206,11 +2176,8 @@ static void HandlePMT( uint16_t i_pid, uint8_t *p_pmt, mtime_t i_dts )
!
b_needs_descrambling
&&
b_needed_descrambling
)
!
b_needs_descrambling
&&
b_needed_descrambling
)
en50221_DeletePMT
(
p_sid
->
p_current_pmt
);
en50221_DeletePMT
(
p_sid
->
p_current_pmt
);
b_new
=
b_change
=
p_sid
->
p_current_pmt
==
NULL
if
(
b_enable_ecm
)
||
psi_get_version
(
p_sid
->
p_current_pmt
)
{
!=
psi_get_version
(
p_pmt
);
if
(
b_enable_ecm
&&
b_new
)
{
j
=
0
;
j
=
0
;
while
(
(
p_desc
=
descs_get_desc
(
pmt_get_descs
(
p_pmt
),
j
++
))
!=
NULL
)
while
(
(
p_desc
=
descs_get_desc
(
pmt_get_descs
(
p_pmt
),
j
++
))
!=
NULL
)
{
{
...
@@ -2225,11 +2192,8 @@ static void HandlePMT( uint16_t i_pid, uint8_t *p_pmt, mtime_t i_dts )
...
@@ -2225,11 +2192,8 @@ static void HandlePMT( uint16_t i_pid, uint8_t *p_pmt, mtime_t i_dts )
{
{
if
(
i_pcr_pid
!=
PADDING_PID
if
(
i_pcr_pid
!=
PADDING_PID
&&
i_pcr_pid
!=
p_sid
->
i_pmt_pid
)
&&
i_pcr_pid
!=
p_sid
->
i_pmt_pid
)
{
b_change
=
true
;
SelectPID
(
i_sid
,
i_pcr_pid
);
SelectPID
(
i_sid
,
i_pcr_pid
);
}
}
}
j
=
0
;
j
=
0
;
while
(
(
p_es
=
pmt_get_es
(
p_pmt
,
j
))
!=
NULL
)
while
(
(
p_es
=
pmt_get_es
(
p_pmt
,
j
))
!=
NULL
)
...
@@ -2237,14 +2201,10 @@ static void HandlePMT( uint16_t i_pid, uint8_t *p_pmt, mtime_t i_dts )
...
@@ -2237,14 +2201,10 @@ static void HandlePMT( uint16_t i_pid, uint8_t *p_pmt, mtime_t i_dts )
uint16_t
i_pid
=
pmtn_get_pid
(
p_es
);
uint16_t
i_pid
=
pmtn_get_pid
(
p_es
);
j
++
;
j
++
;
if
(
b_new
||
pmt_find_es
(
p_sid
->
p_current_pmt
,
i_pid
)
==
NULL
)
{
b_change
=
true
;
if
(
PIDWouldBeSelected
(
p_es
)
)
if
(
PIDWouldBeSelected
(
p_es
)
)
SelectPID
(
i_sid
,
i_pid
);
SelectPID
(
i_sid
,
i_pid
);
p_pids
[
i_pid
].
b_pes
=
PIDCarriesPES
(
p_es
);
p_pids
[
i_pid
].
b_pes
=
PIDCarriesPES
(
p_es
);
}
}
}
if
(
p_sid
->
p_current_pmt
!=
NULL
)
if
(
p_sid
->
p_current_pmt
!=
NULL
)
{
{
...
@@ -2265,11 +2225,8 @@ static void HandlePMT( uint16_t i_pid, uint8_t *p_pmt, mtime_t i_dts )
...
@@ -2265,11 +2225,8 @@ static void HandlePMT( uint16_t i_pid, uint8_t *p_pmt, mtime_t i_dts )
&&
i_current_pcr_pid
!=
PADDING_PID
)
&&
i_current_pcr_pid
!=
PADDING_PID
)
{
{
if
(
pmt_find_es
(
p_pmt
,
i_current_pcr_pid
)
==
NULL
)
if
(
pmt_find_es
(
p_pmt
,
i_current_pcr_pid
)
==
NULL
)
{
b_change
=
true
;
UnselectPID
(
i_sid
,
i_current_pcr_pid
);
UnselectPID
(
i_sid
,
i_current_pcr_pid
);
}
}
}
j
=
0
;
j
=
0
;
while
(
(
p_es
=
pmt_get_es
(
p_sid
->
p_current_pmt
,
j
))
!=
NULL
)
while
(
(
p_es
=
pmt_get_es
(
p_sid
->
p_current_pmt
,
j
))
!=
NULL
)
...
@@ -2281,20 +2238,15 @@ static void HandlePMT( uint16_t i_pid, uint8_t *p_pmt, mtime_t i_dts )
...
@@ -2281,20 +2238,15 @@ static void HandlePMT( uint16_t i_pid, uint8_t *p_pmt, mtime_t i_dts )
uint16_t
i_current_pid
=
pmtn_get_pid
(
p_es
);
uint16_t
i_current_pid
=
pmtn_get_pid
(
p_es
);
if
(
pmt_find_es
(
p_pmt
,
i_current_pid
)
==
NULL
)
if
(
pmt_find_es
(
p_pmt
,
i_current_pid
)
==
NULL
)
{
b_change
=
true
;
UnselectPID
(
i_sid
,
i_current_pid
);
UnselectPID
(
i_sid
,
i_current_pid
);
}
}
}
}
}
free
(
p_sid
->
p_current_pmt
);
free
(
p_sid
->
p_current_pmt
);
}
}
p_sid
->
p_current_pmt
=
p_pmt
;
p_sid
->
p_current_pmt
=
p_pmt
;
if
(
b_change
)
{
if
(
i_ca_handle
&&
b_is_selected
)
if
(
i_ca_handle
&&
b_is_selected
)
{
{
if
(
b_needs_descrambling
&&
!
b_needed_descrambling
)
if
(
b_needs_descrambling
&&
!
b_needed_descrambling
)
...
@@ -2313,7 +2265,6 @@ static void HandlePMT( uint16_t i_pid, uint8_t *p_pmt, mtime_t i_dts )
...
@@ -2313,7 +2265,6 @@ static void HandlePMT( uint16_t i_pid, uint8_t *p_pmt, mtime_t i_dts )
if
(
i_print_type
==
PRINT_XML
)
if
(
i_print_type
==
PRINT_XML
)
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
}
out_pmt:
out_pmt:
SendPMT
(
p_sid
,
i_dts
);
SendPMT
(
p_sid
,
i_dts
);
...
@@ -2324,8 +2275,6 @@ out_pmt:
...
@@ -2324,8 +2275,6 @@ out_pmt:
*****************************************************************************/
*****************************************************************************/
static
void
HandleNIT
(
mtime_t
i_dts
)
static
void
HandleNIT
(
mtime_t
i_dts
)
{
{
bool
b_display
;
if
(
psi_table_validate
(
pp_current_nit_sections
)
&&
if
(
psi_table_validate
(
pp_current_nit_sections
)
&&
psi_table_compare
(
pp_current_nit_sections
,
pp_next_nit_sections
)
)
psi_table_compare
(
pp_current_nit_sections
,
pp_next_nit_sections
)
)
{
{
...
@@ -2350,17 +2299,11 @@ static void HandleNIT( mtime_t i_dts )
...
@@ -2350,17 +2299,11 @@ static void HandleNIT( mtime_t i_dts )
goto
out_nit
;
goto
out_nit
;
}
}
b_display
=
!
psi_table_validate
(
pp_current_nit_sections
)
||
psi_table_get_version
(
pp_current_nit_sections
)
!=
psi_table_get_version
(
pp_next_nit_sections
);
/* Switch tables. */
/* Switch tables. */
psi_table_free
(
pp_current_nit_sections
);
psi_table_free
(
pp_current_nit_sections
);
psi_table_copy
(
pp_current_nit_sections
,
pp_next_nit_sections
);
psi_table_copy
(
pp_current_nit_sections
,
pp_next_nit_sections
);
psi_table_init
(
pp_next_nit_sections
);
psi_table_init
(
pp_next_nit_sections
);
if
(
b_display
)
{
nit_table_print
(
pp_current_nit_sections
,
msg_Dbg
,
NULL
,
nit_table_print
(
pp_current_nit_sections
,
msg_Dbg
,
NULL
,
demux_Iconv
,
NULL
,
PRINT_TEXT
);
demux_Iconv
,
NULL
,
PRINT_TEXT
);
if
(
i_print_type
!=
-
1
)
if
(
i_print_type
!=
-
1
)
...
@@ -2370,7 +2313,6 @@ static void HandleNIT( mtime_t i_dts )
...
@@ -2370,7 +2313,6 @@ static void HandleNIT( mtime_t i_dts )
if
(
i_print_type
==
PRINT_XML
)
if
(
i_print_type
==
PRINT_XML
)
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
}
out_nit:
out_nit:
;
;
...
@@ -2412,7 +2354,6 @@ static void HandleNITSection( uint16_t i_pid, uint8_t *p_section,
...
@@ -2412,7 +2354,6 @@ static void HandleNITSection( uint16_t i_pid, uint8_t *p_section,
*****************************************************************************/
*****************************************************************************/
static
void
HandleSDT
(
mtime_t
i_dts
)
static
void
HandleSDT
(
mtime_t
i_dts
)
{
{
bool
b_change
,
b_new
;
PSI_TABLE_DECLARE
(
pp_old_sdt_sections
);
PSI_TABLE_DECLARE
(
pp_old_sdt_sections
);
uint8_t
i_last_section
=
psi_table_get_lastsection
(
pp_next_sdt_sections
);
uint8_t
i_last_section
=
psi_table_get_lastsection
(
pp_next_sdt_sections
);
uint8_t
i
;
uint8_t
i
;
...
@@ -2442,10 +2383,6 @@ static void HandleSDT( mtime_t i_dts )
...
@@ -2442,10 +2383,6 @@ static void HandleSDT( mtime_t i_dts )
goto
out_sdt
;
goto
out_sdt
;
}
}
b_change
=
b_new
=
!
psi_table_validate
(
pp_current_sdt_sections
)
||
psi_table_get_version
(
pp_current_sdt_sections
)
!=
psi_table_get_version
(
pp_next_sdt_sections
);
/* Switch tables. */
/* Switch tables. */
psi_table_copy
(
pp_old_sdt_sections
,
pp_current_sdt_sections
);
psi_table_copy
(
pp_old_sdt_sections
,
pp_current_sdt_sections
);
psi_table_copy
(
pp_current_sdt_sections
,
pp_next_sdt_sections
);
psi_table_copy
(
pp_current_sdt_sections
,
pp_next_sdt_sections
);
...
@@ -2463,14 +2400,9 @@ static void HandleSDT( mtime_t i_dts )
...
@@ -2463,14 +2400,9 @@ static void HandleSDT( mtime_t i_dts )
uint16_t
i_sid
=
sdtn_get_sid
(
p_service
);
uint16_t
i_sid
=
sdtn_get_sid
(
p_service
);
j
++
;
j
++
;
if
(
b_new
||
sdt_table_find_service
(
pp_old_sdt_sections
,
i_sid
)
==
NULL
)
{
b_change
=
true
;
UpdateSDT
(
i_sid
);
UpdateSDT
(
i_sid
);
}
}
}
}
}
if
(
psi_table_validate
(
pp_old_sdt_sections
)
)
if
(
psi_table_validate
(
pp_old_sdt_sections
)
)
{
{
...
@@ -2489,18 +2421,13 @@ static void HandleSDT( mtime_t i_dts )
...
@@ -2489,18 +2421,13 @@ static void HandleSDT( mtime_t i_dts )
if
(
sdt_table_find_service
(
pp_current_sdt_sections
,
i_sid
)
if
(
sdt_table_find_service
(
pp_current_sdt_sections
,
i_sid
)
==
NULL
)
==
NULL
)
{
b_change
=
true
;
UpdateSDT
(
i_sid
);
UpdateSDT
(
i_sid
);
}
}
}
}
}
psi_table_free
(
pp_old_sdt_sections
);
psi_table_free
(
pp_old_sdt_sections
);
}
}
if
(
b_change
)
{
sdt_table_print
(
pp_current_sdt_sections
,
msg_Dbg
,
NULL
,
sdt_table_print
(
pp_current_sdt_sections
,
msg_Dbg
,
NULL
,
demux_Iconv
,
NULL
,
PRINT_TEXT
);
demux_Iconv
,
NULL
,
PRINT_TEXT
);
if
(
i_print_type
!=
-
1
)
if
(
i_print_type
!=
-
1
)
...
@@ -2510,7 +2437,6 @@ static void HandleSDT( mtime_t i_dts )
...
@@ -2510,7 +2437,6 @@ static void HandleSDT( mtime_t i_dts )
if
(
i_print_type
==
PRINT_XML
)
if
(
i_print_type
==
PRINT_XML
)
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
}
out_sdt:
out_sdt:
SendSDT
(
i_dts
);
SendSDT
(
i_dts
);
...
...
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