[easytag/easytag-2-2] Fix check for errors when writing WavPack tags
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/easytag-2-2] Fix check for errors when writing WavPack tags
- Date: Mon, 22 Dec 2014 09:04:31 +0000 (UTC)
commit 27318621ace6eb3022bee0eaf536f75b6da75a95
Author: David King <amigadave amigadave com>
Date: Thu Dec 18 16:46:33 2014 +0000
Fix check for errors when writing WavPack tags
src/wavpack_tag.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/wavpack_tag.c b/src/wavpack_tag.c
index cc2a4c2..7919fe8 100644
--- a/src/wavpack_tag.c
+++ b/src/wavpack_tag.c
@@ -406,9 +406,12 @@ gboolean Wavpack_Tag_Write_File_Tag (ET_File *ETFile)
return FALSE;
}
- WavpackWriteTag(wpc);
+ if (WavpackWriteTag (wpc) == 0)
+ {
+ return FALSE;
+ }
- WavpackCloseFile(wpc);
+ WavpackCloseFile (wpc);
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]