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
8cce5134
Commit
8cce5134
authored
Dec 21, 2009
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prevent setting volume to outrageous values.
parent
11de24df
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/misc/lua/libs/volume.c
modules/misc/lua/libs/volume.c
+2
-2
No files found.
modules/misc/lua/libs/volume.c
View file @
8cce5134
...
...
@@ -53,8 +53,8 @@
static
int
vlclua_volume_set
(
lua_State
*
L
)
{
playlist_t
*
p_this
=
vlclua_get_playlist_internal
(
L
);
int
i_volume
=
luaL_checkint
(
L
,
1
);
/* Do we need to check that i_volume is in the AOUT_VOLUME_MIN->MAX range?*/
int
i_volume
=
__MAX
(
__MIN
(
luaL_checkint
(
L
,
1
),
AOUT_VOLUME_MAX
),
AOUT_VOLUME_MIN
);
int
i_ret
=
aout_VolumeSet
(
p_this
,
i_volume
);
vlclua_release_playlist_internal
(
p_this
);
return
vlclua_push_ret
(
L
,
i_ret
);
...
...
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