bool CMusicThumbLoader::GetEmbeddedThumb(const std::string &path, EmbeddedArt &art) { auto_ptr<IMusicInfoTagLoader> pLoader (CMusicInfoTagLoaderFactory::CreateLoader(path)); CMusicInfoTag tag; if (NULL != pLoader.get()) pLoader->Load(path, tag, &art); return !art.empty(); }
bool CMusicThumbLoader::GetEmbeddedThumb(const std::string &path, EmbeddedArt &art) { CFileItem item(path, false); std::unique_ptr<IMusicInfoTagLoader> pLoader (CMusicInfoTagLoaderFactory::CreateLoader(item)); CMusicInfoTag tag; if (NULL != pLoader.get()) pLoader->Load(path, tag, &art); return !art.empty(); }