vlc/vlc-1.1 | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Mon 
Jul  4 17:59:55 2011 +0200| [925b22558cb7ffa3f6fea1db4bcbddd4586b53bb] | 
committer: Jean-Baptiste Kempf

lua: Don't crash when reactivating an extension.

Close #5019
Signed-off-by: Jean-Baptiste Kempf <[email protected]>
(cherry picked from commit 0bade2cde2129fb7b719fd48a89190bcd3d5c650)

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

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

 modules/misc/lua/extension.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/modules/misc/lua/extension.c b/modules/misc/lua/extension.c
index 7fa4ca2..928eebf 100644
--- a/modules/misc/lua/extension.c
+++ b/modules/misc/lua/extension.c
@@ -590,6 +590,7 @@ int lua_ExtensionDeactivate( extensions_manager_t *p_mgr, 
extension_t *p_ext )
             vlc_gc_decref( p_item );
         }
         vlc_object_release( p_ext->p_sys->p_input );
+        p_ext->p_sys->p_input = NULL;
     }
 
     int i_ret = lua_ExecuteFunction( p_mgr, p_ext, "deactivate", LUA_END );

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to