oops -- forgot FLAC -- return bool for the FLAC::File::save() too to provide

some information on if the save was successful.


git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@323170 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Scott Wheeler
2004-06-23 18:45:26 +00:00
parent 8bdecaf320
commit 0d04000f74
4 changed files with 14 additions and 5 deletions

View File

@ -122,8 +122,13 @@ FLAC::Properties *FLAC::File::audioProperties() const
}
void FLAC::File::save()
bool FLAC::File::save()
{
if(readOnly()) {
debug("FLAC::File::save() - Cannot save to a read only file.");
return false;
}
// Create new vorbis comments
if(!d->comment) {
@ -214,6 +219,7 @@ void FLAC::File::save()
writeBlock(d->ID3v1Tag->render());
}
return true;
}
ID3v2::Tag *FLAC::File::ID3v2Tag(bool create)