From e6b67b08d19ff373800dc28c7d2095159c81225b Mon Sep 17 00:00:00 2001 From: classabbyamp Date: Tue, 20 May 2025 20:59:00 -0400 Subject: [PATCH] qmmp: patch for taglib 2 --- srcpkgs/qmmp/patches/taglib2.patch | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 srcpkgs/qmmp/patches/taglib2.patch diff --git a/srcpkgs/qmmp/patches/taglib2.patch b/srcpkgs/qmmp/patches/taglib2.patch new file mode 100644 index 00000000000..9f095fe9568 --- /dev/null +++ b/srcpkgs/qmmp/patches/taglib2.patch @@ -0,0 +1,44 @@ +source: https://sourceforge.net/p/qmmp-dev/code/12168/tree//trunk/qmmp/src/plugins/Input/archive/archivetagreader.cpp?diff=5509cf2ad46bb41b66f44d6c:12167 + +--- a/src/plugins/Input/archive/archivetagreader.cpp ++++ b/src/plugins/Input/archive/archivetagreader.cpp +@@ -79,7 +79,11 @@ + { + return m_input->isOpen(); + } ++#if TAGLIB_MAJOR_VERSION >= 2 ++ virtual void seek(TagLib::offset_t offset, Position p = Beginning) override ++#else + virtual void seek(long offset, Position p = Beginning) override ++#endif + { + switch (p) + { +@@ -99,15 +103,27 @@ + m_input->seek(0); + TagLib::IOStream::clear(); + } ++#if TAGLIB_MAJOR_VERSION >= 2 ++ virtual TagLib::offset_t tell() const override ++#else + virtual long tell() const override ++#endif + { + return m_input->pos(); + } ++#if TAGLIB_MAJOR_VERSION >= 2 ++ virtual TagLib::offset_t length() override ++#else + virtual long length() override ++#endif + { + return m_input->size(); + } ++#if TAGLIB_MAJOR_VERSION >= 2 ++ virtual void truncate(TagLib::offset_t) override ++#else + virtual void truncate(long) override ++#endif + {} + + private: