Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
3c1e28fa
Commit
3c1e28fa
authored
Jun 28, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed the selection of a program list in TS demuxer.
parent
16c88b6d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
modules/demux/ts.c
modules/demux/ts.c
+19
-7
No files found.
modules/demux/ts.c
View file @
3c1e28fa
...
...
@@ -1282,17 +1282,26 @@ 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
(
i_int
>
0
)
if
(
i_int
==
0
&&
p_sys
->
i_current_program
>
0
)
i_int
=
p_sys
->
i_current_program
;
if
(
p_sys
->
i_current_program
>
0
)
{
if
(
i_int
!=
p_sys
->
i_current_program
)
{
if
(
p_sys
->
i_current_program
!=
i_int
)
SetPrgFilter
(
p_demux
,
p_sys
->
i_current_program
,
false
);
}
else
if
(
p_sys
->
i_current_program
<
0
)
{
for
(
int
i
=
0
;
i
<
p_sys
->
programs_list
.
i_count
;
i
++
)
SetPrgFilter
(
p_demux
,
p_sys
->
programs_list
.
p_values
[
i
].
i_int
,
false
);
}
p_sys
->
i_current_program
=
i_int
;
SetPrgFilter
(
p_demux
,
p_sys
->
i_current_program
,
true
);
}
if
(
i_int
>
0
)
{
p_sys
->
i_current_program
=
i_int
;
SetPrgFilter
(
p_demux
,
p_sys
->
i_current_program
,
true
);
}
else
else
if
(
i_int
<
0
)
{
p_sys
->
i_current_program
=
-
1
;
p_sys
->
programs_list
.
i_count
=
0
;
...
...
@@ -1307,7 +1316,10 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{
p_dst
->
i_count
=
p_list
->
i_count
;
for
(
int
i
=
0
;
i
<
p_list
->
i_count
;
i
++
)
{
p_dst
->
p_values
[
i
]
=
p_list
->
p_values
[
i
];
SetPrgFilter
(
p_demux
,
p_dst
->
p_values
[
i
].
i_int
,
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