[UI] PlayQueue on the left, added covers for each entry

This commit is contained in:
emeric
2014-12-07 19:43:22 +01:00
parent cbf10b62d0
commit 3f368f17e4
7 changed files with 205 additions and 45 deletions
+19
View File
@@ -52,6 +52,25 @@ Grabber::getFromInputFormatContext(const Av::InputFormatContext& input)
return res;
}
std::vector<CoverArt>
Grabber::getFromTrack(const boost::filesystem::path& p)
{
std::vector<CoverArt> res;
try
{
Av::InputFormatContext input(p);
return getFromInputFormatContext(input);
}
catch(std::exception& e)
{
LMS_LOG(MOD_COVER, SEV_ERROR) << "Cannot get pictures: " << e.what();
}
return res;
}