[easytag/wip/vorbis-coverart] Mark Vorbis tags with deprecated images as changed
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag/wip/vorbis-coverart] Mark Vorbis tags with deprecated images as changed
- Date: Mon, 24 Feb 2014 18:14:15 +0000 (UTC)
commit 4f9508505542ec19f63a0f0ecf95283d7ce77b4b
Author: David King <amigadave amigadave com>
Date: Mon Feb 24 18:05:49 2014 +0000
Mark Vorbis tags with deprecated images as changed
Ensure that old COVERART fields containing cover art in Vorbis tags are
migrated to the new METADATA_BLOCK_PICTURE by marking the tag as
modified, so that a save will be suggested (in the new format).
https://bugzilla.gnome.org/show_bug.cgi?id=689420
src/ogg_tag.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/ogg_tag.c b/src/ogg_tag.c
index 5f48e34..53a6597 100644
--- a/src/ogg_tag.c
+++ b/src/ogg_tag.c
@@ -609,6 +609,10 @@ ogg_tag_read_file_tag (gchar *filename, File_Tag *FileTag, GError **error)
{
Picture *pic;
+ /* Force marking the file as modified, so that the deprecated cover art
+ * field in converted in a METADATA_PICTURE_BLOCK field. */
+ FileTag->saved = FALSE;
+
pic = Picture_Allocate();
if (!prev_pic)
FileTag->picture = pic;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]