FLAC Slow Header

Andrew Gatt a.gatt at btinternet.com
Wed Sep 10 15:10:20 CEST 2008

After a bit more digging i found this bug filed 
which seems to describe the problem exactly. In there is a patch which 
says its fixes this problem (if padding is available straight away, 
otherwise on subsequent writes). I've looked at the source file of 
flacfile.cpp in taglib1.5 and it doesn't seem to include the changes. 
Can anyone tell me if this patch is applied or if it was rejected for 
some reason?



Andrew Gatt wrote:
> Hi,
> I'm using taglib 1.5 to set the tags up on some files. ID3s seem to work 
> fine, however FLAC headers seems very slow (around 5 seconds) to 
> complete. The below code snippet is inside a loop to re tag all the 
> tracks in an album, as i've mentioned this functions fine for mp3 files, 
> but FLAC files are very slow and seems to be happening in the save function.
>                TagLib::FileRef tag_file(track_path.c_str());
>                if(!tag_file.isNull() && tag_file.tag()) {
>                        tag_file.tag()->setAlbum(album_info.at(0));
>                        tag_file.tag()->setGenre(album_info.at(1));
> tag_file.tag()->setYear(atoi(album_info.at(2).c_str()));
>                        tag_file.save();
>                }
> Anyone got any ideas on what i might be doing wrong or if there is a 
> work around?
> Thanks
> Andrew

More information about the taglib-devel mailing list