Commit 132d6e2f authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

lua: Print debug message only if really wanted.

parent 21724f58
...@@ -173,7 +173,7 @@ static int fetch_art( vlc_object_t *p_this, const char * psz_filename, ...@@ -173,7 +173,7 @@ static int fetch_art( vlc_object_t *p_this, const char * psz_filename,
psz_value = lua_tostring( p_state, s ); psz_value = lua_tostring( p_state, s );
if( psz_value && *psz_value != 0 ) if( psz_value && *psz_value != 0 )
{ {
msg_Dbg( p_this, "setting arturl: %s", psz_value ); lua_Dbg( p_this, "setting arturl: %s", psz_value );
input_item_SetArtURL ( p_input, psz_value ); input_item_SetArtURL ( p_input, psz_value );
i_ret = VLC_SUCCESS; i_ret = VLC_SUCCESS;
} }
......
...@@ -57,6 +57,23 @@ int E_(FindMeta)( vlc_object_t * ); ...@@ -57,6 +57,23 @@ int E_(FindMeta)( vlc_object_t * );
int E_(Import_LuaPlaylist)( vlc_object_t * ); int E_(Import_LuaPlaylist)( vlc_object_t * );
void E_(Close_LuaPlaylist)( vlc_object_t * ); void E_(Close_LuaPlaylist)( vlc_object_t * );
/*****************************************************************************
* Lua debug
*****************************************************************************/
static inline void lua_Dbg( vlc_object_t * p_this, const char * ppz_fmt, ... )
{
if( p_this->p_libvlc->i_verbose < 3 )
return;
va_list ap;
va_start( ap, ppz_fmt );
__msg_GenericVa( ( vlc_object_t *)p_this, MSG_QUEUE_NORMAL,
VLC_MSG_DBG, MODULE_STRING,
ppz_fmt, ap );
va_end( ap );
}
/***************************************************************************** /*****************************************************************************
* Lua function bridge * Lua function bridge
*****************************************************************************/ *****************************************************************************/
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment