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
4fda5acd
Commit
4fda5acd
authored
Jun 18, 2011
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lua: fix object leaks.
parent
ed641fe3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/lua/libs/equalizer.c
modules/lua/libs/equalizer.c
+6
-0
No files found.
modules/lua/libs/equalizer.c
View file @
4fda5acd
...
...
@@ -50,6 +50,9 @@ static int vlclua_preamp_get( lua_State *L )
aout_instance_t
*
p_aout
=
input_GetAout
(
p_input
);
float
preamp
=
var_GetFloat
(
p_aout
,
"equalizer-preamp"
);
lua_pushnumber
(
L
,
preamp
);
vlc_object_release
(
p_aout
);
vlc_object_release
(
p_input
);
return
1
;
}
return
0
;
...
...
@@ -67,6 +70,9 @@ static int vlclua_preamp_set( lua_State *L )
float
preamp
=
luaL_checknumber
(
L
,
1
);
var_SetFloat
(
p_aout
,
"equalizer-preamp"
,
preamp
);
lua_pushnumber
(
L
,
preamp
);
vlc_object_release
(
p_aout
);
vlc_object_release
(
p_input
);
return
1
;
}
return
0
;
...
...
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