[vlc-devel] commit: Simplify and hopefully fix compilation :) (Antoine Cellerier )
git version control
git at videolan.org
Wed Sep 30 15:48:53 CEST 2009
vlc | branch: master | Antoine Cellerier <dionoea at videolan.org> | Wed Sep 30 15:45:33 2009 +0200| [35d52735c22da933ad14cc52a94ce8aa57a30df8] | committer: Antoine Cellerier
Simplify and hopefully fix compilation :)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=35d52735c22da933ad14cc52a94ce8aa57a30df8
---
modules/misc/lua/demux.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/modules/misc/lua/demux.c b/modules/misc/lua/demux.c
index ea0eb2b..e674998 100644
--- a/modules/misc/lua/demux.c
+++ b/modules/misc/lua/demux.c
@@ -140,7 +140,6 @@ static int probe_luascript( vlc_object_t *p_this, const char * psz_filename,
{
msg_Warn( p_demux, "Error loading script %s: %s", psz_filename,
lua_tostring( L, lua_gettop( L ) ) );
- lua_pop( L, 1 );
goto error;
}
@@ -150,9 +149,7 @@ static int probe_luascript( vlc_object_t *p_this, const char * psz_filename,
{
msg_Warn( p_demux, "Error while runing script %s, "
"function probe() not found", psz_filename );
- lua_pop( L, 1 );
goto error;
- return VLC_EGENERIC;
}
if( lua_pcall( L, 0, 1, 0 ) )
@@ -160,9 +157,7 @@ static int probe_luascript( vlc_object_t *p_this, const char * psz_filename,
msg_Warn( p_demux, "Error while runing script %s, "
"function probe(): %s", psz_filename,
lua_tostring( L, lua_gettop( L ) ) );
- lua_pop( L, 1 );
goto error;
- return VLC_EGENERIC;
}
if( lua_gettop( L ) )
@@ -174,11 +169,11 @@ static int probe_luascript( vlc_object_t *p_this, const char * psz_filename,
lua_pop( L, 1 );
return VLC_SUCCESS;
}
- lua_pop( L, 1 );
}
error:
- FREENULL( p_sys->psz_filename );
+ lua_pop( L, 1 );
+ FREENULL( p_demux->p_sys->psz_filename );
return VLC_EGENERIC;
}
More information about the vlc-devel
mailing list