[vlc-commits] commit: lua_sd: warn in cas descriptor function is missing. ( Rémi Duraffort )
git at videolan.org
git at videolan.org
Wed Sep 8 20:40:11 CEST 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Wed Sep 8 20:30:35 2010 +0200| [470dea53587ed183d38da42662b4e2de531b7a81] | committer: Rémi Duraffort
lua_sd: warn in cas descriptor function is missing.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=470dea53587ed183d38da42662b4e2de531b7a81
---
modules/misc/lua/vlc.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/misc/lua/vlc.c b/modules/misc/lua/vlc.c
index ee0b057..dc8daac 100644
--- a/modules/misc/lua/vlc.c
+++ b/modules/misc/lua/vlc.c
@@ -687,6 +687,7 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
lua_getglobal( L, "descriptor" );
if( !lua_isfunction( L, lua_gettop( L ) ) || lua_pcall( L, 0, 1, 0 ) )
{
+ msg_Warn( probe, "No 'descriptor' function in '%s'", psz_filename );
lua_pop( L, 1 );
if( !( psz_longname = strdup( *ppsz_file ) ) )
{
More information about the vlc-commits
mailing list