[easytag] Fix skipping over ID3v2 tags in Ogg files
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Fix skipping over ID3v2 tags in Ogg files
- Date: Fri, 7 Nov 2014 08:37:22 +0000 (UTC)
commit 03418dd249116b985e114023622fccdc426d904a
Author: David King <amigadave amigadave com>
Date: Thu Nov 6 21:59:59 2014 +0000
Fix skipping over ID3v2 tags in Ogg files
According to the documentation for ogg_sync_pageout(), a return value of
-1 means that bytes were skipped, and so it is fine to continue reading.
Fixes writing to Ogg files where an ID3v2 tag is present.
https://bugzilla.gnome.org/show_bug.cgi?id=739748
src/tags/vcedit.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/tags/vcedit.c b/src/tags/vcedit.c
index eb0a062..284096b 100644
--- a/src/tags/vcedit.c
+++ b/src/tags/vcedit.c
@@ -798,11 +798,9 @@ vcedit_write(vcedit_state *state, GFile *file, GError **error)
result = ogg_sync_pageout(state->oy, &ogout);
if(result==0)
break;
- if(result<0)
+ if (result < 0)
{
- g_set_error (error, ET_OGG_ERROR, ET_OGG_ERROR_FAILED,
- "Corrupt or missing data, continuing…");
- goto cleanup;
+ g_debug ("%s", "Corrupt or missing data, continuing");
}
else
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]