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
391267b1
Commit
391267b1
authored
May 11, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbus: fix boundary test in SetVideoES, SetAudioES and SetSubtitleES
parent
14059298
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/control/dbus.c
modules/control/dbus.c
+3
-3
No files found.
modules/control/dbus.c
View file @
391267b1
...
...
@@ -770,7 +770,7 @@ DBUS_METHOD( SetVideoES )
vlc_value_t
newval
;
var_Change
(
p_input
,
"video-es"
,
VLC_VAR_GETCHOICES
,
&
val_list
,
NULL
);
if
(
(
i_es
<
0
)
&&
(
i_es
>=
val_list
.
p_list
->
i_count
)
)
if
(
(
i_es
<
0
)
||
(
i_es
>=
val_list
.
p_list
->
i_count
)
)
i_es
=
-
1
;
else
{
...
...
@@ -879,7 +879,7 @@ DBUS_METHOD( SetAudioES )
vlc_value_t
newval
;
var_Change
(
p_input
,
"audio-es"
,
VLC_VAR_GETCHOICES
,
&
val_list
,
NULL
);
if
(
(
i_es
<
0
)
&&
(
i_es
>=
val_list
.
p_list
->
i_count
)
)
if
(
(
i_es
<
0
)
||
(
i_es
>=
val_list
.
p_list
->
i_count
)
)
i_es
=
-
1
;
else
{
...
...
@@ -992,7 +992,7 @@ DBUS_METHOD( SetSubtitleES )
if
(
val_list
.
p_list
->
i_count
==
0
)
i_es
=
-
1
;
if
(
(
i_es
<
0
)
&&
(
i_es
>=
val_list
.
p_list
->
i_count
)
)
if
(
(
i_es
<
0
)
||
(
i_es
>=
val_list
.
p_list
->
i_count
)
)
i_es
=
-
1
;
newval
=
val_list
.
p_list
->
p_values
[
i_es
];
...
...
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