FreeBSD Bugzilla – Attachment 248070 Details for
Bug 276721
multimedia/qmmp-qt6: Update to 2.1.8
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for qmmp-qt6
taglib-qmmp-qt6.patch (text/plain), 4.70 KB, created by
Daniel Engberg
on 2024-01-29 21:02:02 UTC
(
hide
)
Description:
Patch for qmmp-qt6
Filename:
MIME Type:
Creator:
Daniel Engberg
Created:
2024-01-29 21:02:02 UTC
Size:
4.70 KB
patch
obsolete
>diff --git a/multimedia/qmmp-qt6/files/patch-r11256 b/multimedia/qmmp-qt6/files/patch-r11256 >new file mode 100644 >index 000000000000..3109071638d6 >--- /dev/null >+++ b/multimedia/qmmp-qt6/files/patch-r11256 >@@ -0,0 +1,115 @@ >+--- src/plugins/Input/archive/archivetagreader.cpp >++++ src/plugins/Input/archive/archivetagreader.cpp >+@@ -42,7 +42,11 @@ >+ return m_fileName.constData(); >+ #endif >+ } >++#if TAGLIB_MAJOR_VERSION >= 2 >++ virtual TagLib::ByteVector readBlock(size_t length) override >++#else >+ virtual TagLib::ByteVector readBlock(unsigned long length) override >++#endif >+ { >+ char data[length]; >+ qint64 l = m_input->read(data, length); >+@@ -55,10 +59,17 @@ >+ } >+ virtual void writeBlock(const TagLib::ByteVector &) override >+ {} >++#if TAGLIB_MAJOR_VERSION >= 2 >++ virtual void insert(const TagLib::ByteVector &, TagLib::offset_t, size_t) override >++ {} >++ virtual void removeBlock(TagLib::offset_t, size_t) override >++ {} >++#else >+ virtual void insert(const TagLib::ByteVector &, unsigned long, unsigned long) override >+ {} >+ virtual void removeBlock(unsigned long, unsigned long) override >+ {} >++#endif >+ virtual bool readOnly() const override >+ { >+ return true; >+/trunk/qmmp/src/plugins/Input/flac/decoder_flac.cppDiffSwitch to side-by-side view >+--- src/plugins/Input/flac/decoder_flac.cpp >++++ src/plugins/Input/flac/decoder_flac.cpp >+@@ -295,7 +295,11 @@ >+ p.remove("flac://"); >+ p.remove(QRegularExpression("#\\d+$")); >+ TagLib::FileStream stream(QStringToFileName(p), true); >++#if TAGLIB_MAJOR_VERSION >= 2 >++ TagLib::FLAC::File fileRef(&stream); >++#else >+ TagLib::FLAC::File fileRef(&stream, TagLib::ID3v2::FrameFactory::instance()); >++#endif >+ //looking for cuesheet comment >+ TagLib::Ogg::XiphComment *tag = fileRef.xiphComment(); >+ TagLib::FLAC::Properties *ap = fileRef.audioProperties(); >+--- src/plugins/Input/flac/decoderflacfactory.cpp >++++ src/plugins/Input/flac/decoderflacfactory.cpp >+@@ -97,7 +97,11 @@ >+ >+ if(filePath.endsWith(".flac", Qt::CaseInsensitive)) >+ { >++#if TAGLIB_MAJOR_VERSION >= 2 >++ flacFile = new TagLib::FLAC::File(&stream); >++#else >+ flacFile = new TagLib::FLAC::File(&stream, TagLib::ID3v2::FrameFactory::instance()); >++#endif >+ tag = flacFile->xiphComment(); >+ ap = flacFile->audioProperties(); >+ } >+--- src/plugins/Input/flac/flacmetadatamodel.cpp >++++ src/plugins/Input/flac/flacmetadatamodel.cpp >+@@ -41,7 +41,11 @@ >+ if(m_path.endsWith(".flac", Qt::CaseInsensitive)) >+ { >+ m_stream = new TagLib::FileStream(QStringToFileName(m_path), readOnly); >++#if TAGLIB_MAJOR_VERSION >= 2 >++ TagLib::FLAC::File *f = new TagLib::FLAC::File(m_stream); >++#else >+ TagLib::FLAC::File *f = new TagLib::FLAC::File(m_stream, TagLib::ID3v2::FrameFactory::instance()); >++#endif >+ m_tag = f->xiphComment(); >+ m_file = f; >+ setDialogHints(dialogHints() | MetaDataModel::IsCueEditable); >+--- src/plugins/Input/mpeg/decodermpegfactory.cpp >++++ src/plugins/Input/mpeg/decodermpegfactory.cpp >+@@ -220,7 +220,11 @@ >+ return QList<TrackInfo*>() << info; >+ >+ TagLib::FileStream stream(QStringToFileName(path), true); >++#if TAGLIB_MAJOR_VERSION >= 2 >++ TagLib::MPEG::File fileRef(&stream); >++#else >+ TagLib::MPEG::File fileRef(&stream, TagLib::ID3v2::FrameFactory::instance()); >++#endif >+ >+ if (parts & TrackInfo::MetaData) >+ { >+@@ -348,6 +352,11 @@ >+ break; >+ case TagLib::MPEG::Header::Version2_5: >+ info->setValue(Qmmp::FORMAT_NAME, QString("MPEG-2.5 layer %1").arg(fileRef.audioProperties()->layer())); >++ break; >++#if TAGLIB_MAJOR_VERSION >= 2 >++ case TagLib::MPEG::Header::Version4: >++ info->setValue(Qmmp::FORMAT_NAME, QString("MPEG-4 layer %1").arg(fileRef.audioProperties()->layer())); >++#endif >+ } >+ info->setDuration(fileRef.audioProperties()->lengthInMilliseconds()); >+ } >+--- src/plugins/Input/mpeg/mpegmetadatamodel.cpp >++++ src/plugins/Input/mpeg/mpegmetadatamodel.cpp >+@@ -41,7 +41,11 @@ >+ MetaDataModel(readOnly, MetaDataModel::IsCoverEditable) >+ { >+ m_stream = new TagLib::FileStream(QStringToFileName(path), readOnly); >++#if TAGLIB_MAJOR_VERSION >= 2 >++ m_file = new TagLib::MPEG::File(m_stream); >++#else >+ m_file = new TagLib::MPEG::File(m_stream, TagLib::ID3v2::FrameFactory::instance()); >++#endif >+ m_tags << new MpegFileTagModel(using_rusxmms, m_file, TagLib::MPEG::File::ID3v1); >+ m_tags << new MpegFileTagModel(using_rusxmms, m_file, TagLib::MPEG::File::ID3v2); >+ m_tags << new MpegFileTagModel(using_rusxmms, m_file, TagLib::MPEG::File::APE);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 276721
:
248070
|
251141