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
ba789e5b
Commit
ba789e5b
authored
Jun 28, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed (un)selection of pcr pid in TS demuxer.
parent
46c39f92
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
modules/demux/ts.c
modules/demux/ts.c
+10
-4
No files found.
modules/demux/ts.c
View file @
ba789e5b
...
...
@@ -1281,7 +1281,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
case
DEMUX_SET_GROUP
:
{
uint16_t
i_vpid
=
0
,
i_apid1
=
0
,
i_apid2
=
0
,
i_apid3
=
0
;
ts_prg_psi_t
*
p_prg
=
NULL
;
ts_prg_psi_t
*
p_prg
;
vlc_list_t
*
p_list
;
i_int
=
(
int
)
va_arg
(
args
,
int
);
...
...
@@ -1302,6 +1302,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
if
(
pmt
->
psi
->
prg
[
i_prg
]
->
i_number
==
p_sys
->
i_current_program
)
{
i_pmt_pid
=
p_sys
->
pmt
[
i
]
->
i_pid
;
p_prg
=
p_sys
->
pmt
[
i
]
->
psi
->
prg
[
i_prg
];
break
;
}
}
...
...
@@ -1313,6 +1314,10 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
stream_Control
(
p_demux
->
s
,
STREAM_CONTROL_ACCESS
,
ACCESS_SET_PRIVATE_ID_STATE
,
i_pmt_pid
,
false
);
if
(
p_prg
->
i_pid_pcr
>
0
)
stream_Control
(
p_demux
->
s
,
STREAM_CONTROL_ACCESS
,
ACCESS_SET_PRIVATE_ID_STATE
,
p_prg
->
i_pid_pcr
,
false
);
/* All ES */
for
(
int
i
=
2
;
i
<
8192
;
i
++
)
{
...
...
@@ -1360,6 +1365,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
stream_Control
(
p_demux
->
s
,
STREAM_CONTROL_ACCESS
,
ACCESS_SET_PRIVATE_ID_STATE
,
i_pmt_pid
,
true
);
if
(
p_prg
->
i_pid_pcr
>
0
)
stream_Control
(
p_demux
->
s
,
STREAM_CONTROL_ACCESS
,
ACCESS_SET_PRIVATE_ID_STATE
,
p_prg
->
i_pid_pcr
,
true
);
...
...
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