Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:EKrava
kdemultimedia3
kdemultimedia-taglib2.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdemultimedia-taglib2.patch of Package kdemultimedia3
diff -Naru kdemultimedia-3.5.10_orig/kfile-plugins/flac/kfile_flac.cpp kdemultimedia-3.5.10/kfile-plugins/flac/kfile_flac.cpp --- kdemultimedia-3.5.10_orig/kfile-plugins/flac/kfile_flac.cpp 2005-09-10 08:20:08.000000000 +0000 +++ kdemultimedia-3.5.10/kfile-plugins/flac/kfile_flac.cpp 2024-03-02 09:20:22.068347434 +0000 @@ -198,7 +198,7 @@ appendItem(techgroup, "Bitrate", properties->bitrate()); appendItem(techgroup, "Sample Rate", properties->sampleRate()); - appendItem(techgroup, "Sample Width", properties->sampleWidth()); + appendItem(techgroup, "Bits Per Sample", properties->bitsPerSample()); appendItem(techgroup, "Channels", properties->channels()); appendItem(techgroup, "Length", properties->length()); } @@ -232,11 +232,6 @@ { TagLib::File *file; - if (!TagLib::File::isWritable(QFile::encodeName(info.path()).data())) { - kdDebug(7034) << "can't write to " << info.path() << endl; - return false; - } - if (info.mimeType() == "audio/x-flac") file = new TagLib::FLAC::File(QFile::encodeName(info.path()).data(), false); #ifdef TAGLIB_1_2 @@ -251,6 +246,12 @@ return false; } + if (file->readOnly()) { + kdDebug(7034) << "can't write to " << info.path() << endl; + delete file; + return false; + } + Translator t(info); file->tag()->setTitle(t["Title"]); diff -Naru kdemultimedia-3.5.10_orig/kfile-plugins/mp3/kfile_mp3.cpp kdemultimedia-3.5.10/kfile-plugins/mp3/kfile_mp3.cpp --- kdemultimedia-3.5.10_orig/kfile-plugins/mp3/kfile_mp3.cpp 2005-09-10 08:20:07.000000000 +0000 +++ kdemultimedia-3.5.10/kfile-plugins/mp3/kfile_mp3.cpp 2024-03-02 08:41:20.817636485 +0000 @@ -237,7 +237,7 @@ TagLib::ID3v2::FrameFactory::instance()->setDefaultTextEncoding(TagLib::String::UTF8); TagLib::MPEG::File file(QFile::encodeName(info.path()).data(), false); - if(!file.isOpen() || !TagLib::File::isWritable(file.name())) + if(!file.isOpen() || file.readOnly()) { kdDebug(7034) << "couldn't open " << info.path() << endl; return false; diff -Naru kdemultimedia-3.5.10_orig/kfile-plugins/mpc/kfile_mpc.cpp kdemultimedia-3.5.10/kfile-plugins/mpc/kfile_mpc.cpp --- kdemultimedia-3.5.10_orig/kfile-plugins/mpc/kfile_mpc.cpp 2005-09-10 08:20:07.000000000 +0000 +++ kdemultimedia-3.5.10/kfile-plugins/mpc/kfile_mpc.cpp 2024-03-02 09:12:44.752193210 +0000 @@ -208,11 +208,6 @@ { TagLib::File *file; - if (!TagLib::File::isWritable(QFile::encodeName(info.path()).data())) { - kdDebug(7034) << "can't write to " << info.path() << endl; - return false; - } - file = new TagLib::MPC::File(QFile::encodeName(info.path()).data(), false); if(!file->isOpen()) @@ -222,6 +217,13 @@ return false; } + if (file->readOnly()) { + kdDebug(7034) << "can't write to " << info.path() << endl; + delete file; + return false; + } + + Translator t(info); file->tag()->setTitle(t["Title"]);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor