jmarshallnz/xbmc — comment on commit 00e8a204805392341e02d920ca8d40de87741365
File: xbmc/ThumbnailCache.cpp line 235
By vdrfan:

FYI, item.GetVideoInfoTag()->GetPath() is using the exact same logic. Maybe you should use that one.