Commit 470dea53 authored by Rémi Duraffort's avatar Rémi Duraffort

lua_sd: warn in cas descriptor function is missing.

parent a5b2deb1
...@@ -687,6 +687,7 @@ static int vlc_sd_probe_Open( vlc_object_t *obj ) ...@@ -687,6 +687,7 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
lua_getglobal( L, "descriptor" ); lua_getglobal( L, "descriptor" );
if( !lua_isfunction( L, lua_gettop( L ) ) || lua_pcall( L, 0, 1, 0 ) ) 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 ); lua_pop( L, 1 );
if( !( psz_longname = strdup( *ppsz_file ) ) ) if( !( psz_longname = strdup( *ppsz_file ) ) )
{ {
......
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