No subject

Markus Wolters MarkusWolters at gmx.de
Wed May 26 09:56:23 CEST 2010


Hi everbody,

I'm playing with taglib a bit, but removing frames from a tag is driving me crazy. It seems to work if I use "TCON" or "APIC" as sAttribute, but every other information type has no effect. Am I doing something wrong here or isn't it possible to remove "TALB" (for example) completely?

This is what I do: 

void RemoveTag(const string sFilename, const string sAttribute)
{
	TagLib::MPEG::File file(sFilename.c_str());

	if(!file.ID3v2Tag())
		return;

	file.ID3v2Tag()->removeFrames(TagLib::ByteVector(sAttribute.c_str()));

	/*TagLib::ID3v2::FrameList l = file.ID3v2Tag()->frameListMap()[sAttribute.c_str()];

	if(!l.isEmpty())
	{
	    for(TagLib::ID3v2::FrameList::Iterator it = l.begin(); it != l.end(); ++it)
	    	file.ID3v2Tag()->removeFrame(*it, true);
	}*/
}

Thanks in advance,
Markus
 
-- 
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01


More information about the taglib-devel mailing list