[vlc-commits] Lua: remove cargo cult check for the private data of the input thread

Rémi Denis-Courmont git at videolan.org
Sun Jan 5 12:44:58 CET 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jan  5 13:34:12 2014 +0200| [216b14b6b13ff0aae60373841015737389b119ee] | committer: Rémi Denis-Courmont

Lua: remove cargo cult check for the private data of the input thread

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=216b14b6b13ff0aae60373841015737389b119ee
---

 modules/lua/libs/input.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/lua/libs/input.c b/modules/lua/libs/input.c
index 9e1942c..f161a4a 100644
--- a/modules/lua/libs/input.c
+++ b/modules/lua/libs/input.c
@@ -267,7 +267,7 @@ static int vlclua_input_item_get( lua_State *L, input_item_t *p_item )
 static int vlclua_input_item_get_current( lua_State *L )
 {
     input_thread_t *p_input = vlclua_get_input_internal( L );
-    input_item_t *p_item = ( p_input && p_input->p ) ? input_GetItem( p_input ) : NULL;
+    input_item_t *p_item = p_input ? input_GetItem( p_input ) : NULL;
     if( !p_item )
     {
         lua_pushnil( L );



More information about the vlc-commits mailing list