[vlc-commits] commit: lua: use msg_Err instead of fprintf (remaining debug). ( Rémi Duraffort )
git at videolan.org
git at videolan.org
Mon Sep 13 19:51:12 CEST 2010
vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Mon Sep 13 19:50:33 2010 +0200| [428bcf0d9da2501675460fb5184022dff1f56ec6] | committer: Rémi Duraffort
lua: use msg_Err instead of fprintf (remaining debug).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=428bcf0d9da2501675460fb5184022dff1f56ec6
---
modules/misc/lua/libs/misc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/misc/lua/libs/misc.c b/modules/misc/lua/libs/misc.c
index 96f260f..ba01268 100644
--- a/modules/misc/lua/libs/misc.c
+++ b/modules/misc/lua/libs/misc.c
@@ -296,7 +296,7 @@ static void vlclua_timer_callback( void *data )
if( lua_pcall( L, 0, 0, 0 ) )
{
const char *psz_err = lua_tostring( L, -1 );
- fprintf( stderr, "Error while running the timer callback: %s\n", psz_err );
+ msg_Err( vlclua_get_this( L ), "Error while running the timer callback: '%s'", psz_err );
lua_settop( L, 0 );
}
}
More information about the vlc-commits
mailing list