mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-26 07:22:56 +02:00
qmmp: patch for taglib 2
This commit is contained in:
parent
3c53d8fa94
commit
e6b67b08d1
1 changed files with 44 additions and 0 deletions
44
srcpkgs/qmmp/patches/taglib2.patch
Normal file
44
srcpkgs/qmmp/patches/taglib2.patch
Normal file
|
@ -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:
|
Loading…
Add table
Reference in a new issue