[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 266002] TagLib: No way to modify or delete single ID3 frames
From: Scott Wheeler <wheeler () kde ! org>
Date: 2011-02-10 19:14:11
Message-ID: 20110210191411.ADA2E7D034 () immanuel ! kde ! org
[Download RAW message or body]
https://bugs.kde.org/show_bug.cgi?id=266002
Scott Wheeler <wheeler@kde.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #1 from Scott Wheeler <wheeler kde org> 2011-02-10 20:14:11 ---
Sorry, this is based on a misunderstanding of the const parameter:
You can't modify the *list*, but you can modify the frames in that list. This,
for example, removes the first frame:
#include <mpegfile.h>
#include <id3v2tag.h>
int main(int argc, char *argv[])
{
TagLib::MPEG::File f(argv[1]);
TagLib::ID3v2::Tag *t = f.ID3v2Tag();
TagLib::ID3v2::FrameList l = t->frameList();
TagLib::ID3v2::Frame *frame = l.front();
t->removeFrame(frame);
f.save();
}
You can modify frames in the same way.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic