Don't try to save read-only MP4 files

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1145556 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Lukáš Lalinský 2010-07-03 11:36:08 +00:00
parent a33f161999
commit ab7e997bc6

View File

@ -129,6 +129,11 @@ MP4::File::read(bool readProperties, Properties::ReadStyle audioPropertiesStyle)
bool
MP4::File::save()
{
if(readOnly()) {
debug("MP4::File::save() -- File is read only.");
return false;
}
if(!isValid())
return false;