diff --git a/src/extractors/taglibextractor.cpp b/src/extractors/taglibextractor.cpp --- a/src/extractors/taglibextractor.cpp +++ b/src/extractors/taglibextractor.cpp @@ -103,7 +103,11 @@ return; } +#if (TAGLIB_MAJOR_VERSION > 1) || (TAGLIB_MAJOR_VERSION == 1 && TAGLIB_MINOR_VERSION >= 11) TagLib::FileRef file(&stream, true); +#else + TagLib::FileRef file(stream.name()); +#endif if (file.isNull()) { qWarning() << "Unable to open file: " << fileUrl; return;