[vlc-devel] commit: lua_libs: use the right object. ( Rémi Duraffort )
git version control
git at videolan.org
Fri Nov 27 10:24:03 CET 2009
vlc | branch: 1.0-bugfix | Rémi Duraffort <ivoire at videolan.org> | Fri Nov 27 10:23:45 2009 +0100| [f70264e67e9309f21980df26e63272e147d747c5] | committer: Rémi Duraffort
lua_libs: use the right object.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f70264e67e9309f21980df26e63272e147d747c5
---
modules/misc/lua/libs/volume.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/misc/lua/libs/volume.c b/modules/misc/lua/libs/volume.c
index 0f734ed..926046a 100644
--- a/modules/misc/lua/libs/volume.c
+++ b/modules/misc/lua/libs/volume.c
@@ -52,7 +52,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?*/
int i_ret = aout_VolumeSet( p_this, i_volume );
@@ -62,8 +62,8 @@ 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 );
audio_volume_t i_volume;
+ playlist_t *p_this = vlclua_get_playlist_internal( L );
if( aout_VolumeGet( p_this, &i_volume ) == VLC_SUCCESS )
lua_pushnumber( L, i_volume );
else
More information about the vlc-devel
mailing list