Problem with TagLib::Ogg::Vorbis::File and save() function

Ilya Kotov forkotov02 at hotmail.ru
Tue Oct 19 20:30:28 CEST 2010


Hello.

This code causes segmentation fault and file corruption.

TagLib::Ogg::Vorbis::File  *file = new TagLib::Ogg::Vorbis::File 
(path_to_file);

TagLib::Ogg::XiphComment *tag = file->tag();
tag->setTitle("Title");

file->save(); //saves correctly
file->save();
file->save(); //segmentation fault

i.e. I cannot use save() function more than one time.

Is it possible to fix this?

Thank you.



-- 
Ilya Kotov aka trialuser
Qmmp developer
http://qmmp.ylsoftware.com/


More information about the taglib-devel mailing list