Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
00b67afd
Commit
00b67afd
authored
Dec 30, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
access: mmstu: missing stream selection
parent
7fa7f22f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
modules/access/mms/mmstu.c
modules/access/mms/mmstu.c
+38
-0
No files found.
modules/access/mms/mmstu.c
View file @
00b67afd
...
...
@@ -44,6 +44,7 @@
#include <vlc_network.h>
#include <vlc_url.h>
#include <vlc_interrupt.h>
#include <vlc_es.h>
#include "asf.h"
#include "buffer.h"
...
...
@@ -267,6 +268,43 @@ static int Control( access_t *p_access, int i_query, va_list args )
*
pb_bool
=
p_sys
->
asfh
.
stream
[
i_int
].
i_selected
?
true
:
false
;
break
;
case
ACCESS_SET_PRIVATE_ID_STATE
:
{
i_int
=
(
int
)
va_arg
(
args
,
int
);
b_bool
=
(
bool
)
va_arg
(
args
,
int
);
int
i_cat
;
if
(
i_int
>
127
)
return
VLC_EGENERIC
;
else
if
(
i_int
<
0
)
{
/* Deselecting all ES in this category */
assert
(
!
b_bool
);
i_cat
=
-
1
*
i_int
;
if
(
i_cat
>
ES_CATEGORY_COUNT
)
return
VLC_EGENERIC
;
}
else
{
/* Chose another ES */
assert
(
b_bool
);
i_cat
=
p_sys
->
asfh
.
stream
[
i_int
].
i_cat
;
}
for
(
int
i
=
0
;
i
<
128
;
i
++
)
{
/* First unselect all streams from the same cat */
if
(
i_cat
==
p_sys
->
asfh
.
stream
[
i
].
i_cat
)
p_sys
->
asfh
.
stream
[
i
].
i_selected
=
false
;
}
if
(
i_int
>
0
)
p_sys
->
asfh
.
stream
[
i_int
].
i_selected
=
true
;
MMSStop
(
p_access
);
Seek
(
p_access
,
p_sys
->
i_position
);
return
VLC_SUCCESS
;
}
case
ACCESS_SET_PAUSE_STATE
:
b_bool
=
(
bool
)
va_arg
(
args
,
int
);
if
(
b_bool
)
...
...
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