Added a fallback to ffmpeg parser in case of audio properties are not properly decoded, ref #781

This commit is contained in:
emeric
2025-11-20 23:15:07 +01:00
parent 162d910904
commit d69827c2a2
35 changed files with 736 additions and 318 deletions
@@ -28,6 +28,11 @@
#include "ImageCache.hpp"
namespace lms::audio
{
class IAudioFileInfoParser;
}
namespace lms::db
{
class Session;
@@ -65,6 +70,7 @@ namespace lms::artwork
ImageCache _cache;
std::shared_ptr<image::IEncodedImage> _defaultReleaseCover;
std::shared_ptr<image::IEncodedImage> _defaultArtistImage;
std::unique_ptr<audio::IAudioFileInfoParser> _audioFileInfoParser;
static inline const std::vector<std::filesystem::path> _fileExtensions{ ".jpg", ".jpeg", ".png", ".bmp" }; // TODO parametrize
unsigned _jpegQuality;