Commit ceb9d2ba authored by Pierre Ynard's avatar Pierre Ynard

luasd: handle probing error more gracefully

parent 9a034400
......@@ -692,12 +692,10 @@ static int vlc_sd_probe_Open( vlc_object_t *obj )
else
{
lua_getfield( L, -1, "title" );
if( !lua_isstring( L, -1 ) )
{
free( psz_filename );
goto error;
}
psz_longname = lua_tostring( L, -1 );
if( lua_isstring( L, -1 ) )
psz_longname = lua_tostring( L, -1 );
else
psz_longname = *ppsz_file;
}
char *psz_file_esc = config_StringEscape( *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