[vlc-devel] commit: LUA: set volume on playlist ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Jul 9 20:41:58 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jul 9 21:26:31 2009 +0300| [63c9e90d26ffa19471c39a92a571bcd55d0eeaf1] | committer: Rémi Denis-Courmont
LUA: set volume on playlist
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=63c9e90d26ffa19471c39a92a571bcd55d0eeaf1
---
modules/misc/lua/libs/volume.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/misc/lua/libs/volume.c b/modules/misc/lua/libs/volume.c
index 2ebd4a4..f199c51 100644
--- a/modules/misc/lua/libs/volume.c
+++ b/modules/misc/lua/libs/volume.c
@@ -51,7 +51,7 @@
*****************************************************************************/
static int vlclua_volume_set( lua_State *L )
{
- vlc_object_t *p_this = vlclua_get_this( 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?*/
return vlclua_push_ret( L, aout_VolumeSet( p_this, i_volume ) );
@@ -59,7 +59,7 @@ static int vlclua_volume_set( lua_State *L )
static int vlclua_volume_get( lua_State *L )
{
- vlc_object_t *p_this = vlclua_get_this( L );
+ playlist_t *p_this = vlclua_get_playlist_internal( L );
audio_volume_t i_volume;
if( aout_VolumeGet( p_this, &i_volume ) == VLC_SUCCESS )
lua_pushnumber( L, i_volume );
@@ -71,7 +71,7 @@ static int vlclua_volume_get( lua_State *L )
static int vlclua_volume_up( lua_State *L )
{
audio_volume_t i_volume;
- aout_VolumeUp( vlclua_get_this( L ),
+ aout_VolumeUp( vlclua_get_playlist_internal( L );
luaL_optint( L, 1, 1 ),
&i_volume );
lua_pushnumber( L, i_volume );
@@ -81,7 +81,7 @@ static int vlclua_volume_up( lua_State *L )
static int vlclua_volume_down( lua_State *L )
{
audio_volume_t i_volume;
- aout_VolumeDown( vlclua_get_this( L ),
+ aout_VolumeDown( vlclua_get_playlist_internal( L ),
luaL_optint( L, 1, 1 ),
&i_volume );
lua_pushnumber( L, i_volume );
More information about the vlc-devel
mailing list