[vlc-commits] commit: LUA: unimplement unsafe OSD channel functions (refs #3927) ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Sun Aug 15 18:19:49 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 15 19:08:22 2010 +0300| [73d2916f1bcd8a660a2b99017d69e72b1b3007af] | committer: Rémi Denis-Courmont 

LUA: unimplement unsafe OSD channel functions (refs #3927)

(They are only used by LUA hotkeys anyway)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=73d2916f1bcd8a660a2b99017d69e72b1b3007af
---

 modules/misc/lua/libs/osd.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/modules/misc/lua/libs/osd.c b/modules/misc/lua/libs/osd.c
index e0ee7db..e66c0af 100644
--- a/modules/misc/lua/libs/osd.c
+++ b/modules/misc/lua/libs/osd.c
@@ -134,10 +134,8 @@ static int vlclua_spu_channel_register( lua_State *L )
     if( !p_vout )
         return luaL_error( L, "Unable to find vout." );
 
-    spu_Control( vout_GetSpu( p_vout ), SPU_CHANNEL_REGISTER, &i_chan );
     vlc_object_release( p_vout );
-    lua_pushinteger( L, i_chan );
-    return 1;
+    return luaL_error( L, "Not implemented." );
 }
 
 static int vlclua_spu_channel_clear( lua_State *L )
@@ -149,9 +147,8 @@ static int vlclua_spu_channel_clear( lua_State *L )
     if( !p_vout )
         return luaL_error( L, "Unable to find vout." );
 
-    spu_Control( vout_GetSpu( p_vout ), SPU_CHANNEL_CLEAR, i_chan );
     vlc_object_release( p_vout );
-    return 0;
+    return luaL_error( L, "Not implemented." );
 }
 
 static int vlclua_menu_show( lua_State *L )



More information about the vlc-commits mailing list