]> git.sesse.net Git - vlc/commitdiff
Don't call the demux close function ourselves, the core will do it.
authorAntoine Cellerier <dionoea@videolan.org>
Fri, 12 Sep 2008 15:46:28 +0000 (17:46 +0200)
committerAntoine Cellerier <dionoea@videolan.org>
Fri, 12 Sep 2008 16:02:20 +0000 (18:02 +0200)
modules/misc/lua/demux.c

index 8928ee7586283ed0f36f76ca0073822381265955..b106cf5c2452bf4a1ec87e773454d149b8a1fa6d 100644 (file)
@@ -256,7 +256,6 @@ static int Demux( demux_t *p_demux )
     {
         msg_Warn( p_demux, "Error while runing script %s, "
                   "function parse() not found", psz_filename );
-        Close_LuaPlaylist( VLC_OBJECT( p_demux ) );
         return VLC_EGENERIC;
     }
 
@@ -265,7 +264,6 @@ static int Demux( demux_t *p_demux )
         msg_Warn( p_demux, "Error while runing script %s, "
                   "function parse(): %s", psz_filename,
                   lua_tostring( L, lua_gettop( L ) ) );
-        Close_LuaPlaylist( VLC_OBJECT( p_demux ) );
         return VLC_EGENERIC;
     }