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
9fd2410f
Commit
9fd2410f
authored
Nov 07, 2009
by
Marian Ďurkovič
Committed by
Christophe Massiot
Nov 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* demux.c: Do not make SDT depend on PMT existence.
parent
fc8f9590
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
16 deletions
+29
-16
demux.c
demux.c
+29
-16
No files found.
demux.c
View file @
9fd2410f
...
...
@@ -94,6 +94,7 @@ static int SIDIsSelected( uint16_t i_sid );
int
PIDWouldBeSelected
(
dvbpsi_pmt_es_t
*
p_es
);
static
int
PMTNeedsDescrambling
(
dvbpsi_pmt_t
*
p_pmt
);
static
void
SendPAT
(
void
);
static
void
SendSDT
(
void
);
static
void
SendPMT
(
sid_t
*
p_sid
);
static
void
NewPAT
(
output_t
*
p_output
);
static
void
NewPMT
(
output_t
*
p_output
);
...
...
@@ -206,6 +207,8 @@ static void demux_Handle( block_t *p_ts )
else
if
(
b_enable_epg
&&
i_pid
==
SDT_PID
)
{
dvbpsi_PushPacket
(
p_sdt_dvbpsi_handle
,
p_ts
->
p_ts
);
if
(
block_UnitStart
(
p_ts
)
)
SendSDT
();
}
else
if
(
b_enable_epg
&&
i_pid
==
TDT_PID
)
{
...
...
@@ -689,23 +692,20 @@ static void SendPAT( void )
}
/*****************************************************************************
* Send
PM
T
* Send
SD
T
*****************************************************************************/
static
void
Send
PMT
(
sid_t
*
p_s
id
)
static
void
Send
SDT
(
vo
id
)
{
int
i
;
for
(
i
=
0
;
i
<
i_nb_outputs
;
i
++
)
{
if
(
pp_outputs
[
i
]
->
i_maddr
&&
pp_outputs
[
i
]
->
i_sid
==
p_sid
->
i_sid
)
{
if
(
pp_outputs
[
i
]
->
p_pmt_section
!=
NULL
)
if
(
pp_outputs
[
i
]
->
i_maddr
&&
pp_outputs
[
i
]
->
p_sdt_section
!=
NULL
)
{
block_t
*
p_block
;
p_block
=
WritePSISection
(
pp_outputs
[
i
]
->
p_pmt_section
,
p_sid
->
i_pmt_pid
,
&
pp_outputs
[
i
]
->
i_pmt_cc
);
p_block
=
WritePSISection
(
pp_outputs
[
i
]
->
p_sdt_section
,
SDT_PID
,
&
pp_outputs
[
i
]
->
i_sdt_cc
);
while
(
p_block
!=
NULL
)
{
block_t
*
p_next
=
p_block
->
p_next
;
...
...
@@ -714,14 +714,27 @@ static void SendPMT( sid_t *p_sid )
p_block
=
p_next
;
}
}
}
}
/*****************************************************************************
* SendPMT
*****************************************************************************/
static
void
SendPMT
(
sid_t
*
p_sid
)
{
int
i
;
if
(
pp_outputs
[
i
]
->
p_sdt_section
!=
NULL
)
for
(
i
=
0
;
i
<
i_nb_outputs
;
i
++
)
{
if
(
pp_outputs
[
i
]
->
i_maddr
&&
pp_outputs
[
i
]
->
i_sid
==
p_sid
->
i_sid
)
{
if
(
pp_outputs
[
i
]
->
p_pmt_section
!=
NULL
)
{
block_t
*
p_block
;
p_block
=
WritePSISection
(
pp_outputs
[
i
]
->
p_
sd
t_section
,
SDT_PID
,
&
pp_outputs
[
i
]
->
i_
sd
t_cc
);
p_block
=
WritePSISection
(
pp_outputs
[
i
]
->
p_
pm
t_section
,
p_sid
->
i_pmt_pid
,
&
pp_outputs
[
i
]
->
i_
pm
t_cc
);
while
(
p_block
!=
NULL
)
{
block_t
*
p_next
=
p_block
->
p_next
;
...
...
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