[easytag/easytag-2-2] Fix skipping over ID3v2 tags in Ogg files
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/easytag-2-2] Fix skipping over ID3v2 tags in Ogg files
- Date: Sat, 15 Nov 2014 00:28:48 +0000 (UTC)
commit d09827150d7d6d92cc8e2f7927fb6ee0aa149a34
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/vcedit.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/vcedit.c b/src/vcedit.c
index 06e7caa..a1e212d 100644
--- a/src/vcedit.c
+++ b/src/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]