Montellese/xbmc — comment on commit 7c15161e74533ff83fbf70b8503d1b9637c7210d
File: xbmc/video/VideoDatabase.cpp line 1026
By jmarshallnz:

Ah, the stat() - indeed, we should limit this where possible. I guess one problem is you don't necessarily know when the path is added - it could conceivably be added before the scan is done. However, the AddFile might also be done at a point before the scan (eg if the user plays the file before scanning) but I suspect this isn't too much of an issue.