Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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
vlc-2-2
Commits
d4c95534
Commit
d4c95534
authored
Jun 28, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up b_access_control usage in TS.
parent
1cfd7773
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
17 deletions
+14
-17
modules/demux/ts.c
modules/demux/ts.c
+14
-17
No files found.
modules/demux/ts.c
View file @
d4c95534
...
...
@@ -1282,15 +1282,17 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
p_list
=
(
vlc_list_t
*
)
va_arg
(
args
,
vlc_list_t
*
);
msg_Dbg
(
p_demux
,
"DEMUX_SET_GROUP %d %p"
,
i_int
,
p_list
);
if
(
p_sys
->
b_access_control
&&
i_int
>
0
&&
i_int
!=
p_sys
->
i_current_program
)
if
(
i_int
>
0
)
{
SetPrgFilter
(
p_demux
,
p_sys
->
i_current_program
,
false
);
if
(
i_int
!=
p_sys
->
i_current_program
)
{
SetPrgFilter
(
p_demux
,
p_sys
->
i_current_program
,
false
);
/* select new program */
p_sys
->
i_current_program
=
i_int
;
SetPrgFilter
(
p_demux
,
p_sys
->
i_current_program
,
true
);
p_sys
->
i_current_program
=
i_int
;
SetPrgFilter
(
p_demux
,
p_sys
->
i_current_program
,
true
)
;
}
}
else
if
(
i_int
<=
0
)
else
{
p_sys
->
i_current_program
=
-
1
;
p_sys
->
programs_list
.
i_count
=
0
;
...
...
@@ -2554,8 +2556,6 @@ static bool ProgramIsSelected( demux_t *p_demux, uint16_t i_pgrm )
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
if
(
!
p_sys
->
b_access_control
)
return
false
;
if
(
(
p_sys
->
i_current_program
==
-
1
&&
p_sys
->
programs_list
.
i_count
==
0
)
||
p_sys
->
i_current_program
==
0
)
return
true
;
...
...
@@ -3984,7 +3984,7 @@ static void PMTCallBack( demux_t *p_demux, dvbpsi_pmt_t *p_pmt )
/* Set demux filter */
SetPIDFilter
(
p_demux
,
prg
->
i_pid_pcr
,
true
);
}
else
if
(
p_sys
->
b_access_control
)
else
{
msg_Warn
(
p_demux
,
"skipping program (not selected)"
);
dvbpsi_DeletePMT
(
p_pmt
);
...
...
@@ -4345,16 +4345,13 @@ static void PATCallBack( demux_t *p_demux, dvbpsi_pat_t *p_pat )
p_program
->
i_pid
;
/* Now select PID at access level */
if
(
p_sys
->
b_access_control
)
if
(
ProgramIsSelected
(
p_demux
,
p_program
->
i_number
)
)
{
if
(
ProgramIsSelected
(
p_demux
,
p_program
->
i_number
)
)
{
if
(
p_sys
->
i_current_program
==
0
)
p_sys
->
i_current_program
=
p_program
->
i_number
;
if
(
p_sys
->
i_current_program
==
0
)
p_sys
->
i_current_program
=
p_program
->
i_number
;
if
(
SetPIDFilter
(
p_demux
,
p_program
->
i_pid
,
true
)
)
p_sys
->
b_access_control
=
false
;
}
if
(
SetPIDFilter
(
p_demux
,
p_program
->
i_pid
,
true
)
)
p_sys
->
b_access_control
=
false
;
}
}
}
...
...
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