[vlc-commits] Taglib: more debug about Cover Art
Jean-Baptiste Kempf
git at videolan.org
Sat Jul 9 18:00:05 CEST 2011
vlc/vlc-1.1 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Jul 9 17:50:12 2011 +0200| [112fe1492e4a515ce405af6ea2c0fdc9c5fc8101] | committer: Jean-Baptiste Kempf
Taglib: more debug about Cover Art
> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=112fe1492e4a515ce405af6ea2c0fdc9c5fc8101
---
modules/meta_engine/taglib.cpp | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index c041c16..6bc2926 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -159,6 +159,9 @@ static void ReadMetaFromASF( ASF::Tag* tag, demux_meta_t* p_demux_meta, vlc_meta
continue;
}
+ msg_Dbg( p_demux_meta, "Found embedded art: %s (%s) is %u bytes",
+ psz_name, psz_mime, i_data );
+
p_attachment = vlc_input_attachment_New( psz_name, psz_mime,
psz_name, p_data, i_data );
if( p_attachment )
@@ -408,6 +411,9 @@ static void ReadMetaFromMP4( MP4::Tag* tag, demux_meta_t *p_demux_meta, vlc_meta
MP4::CoverArtList list = tag->itemListMap()["covr"].toCoverArtList();
const char *psz_format = list[0].format() == MP4::CoverArt::PNG ? "image/png" : "image/jpeg";
+ msg_Dbg( p_demux_meta, "Found embedded art: cover (%s) is %u bytes",
+ psz_format, list[0].data().size() );
+
TAB_INIT( p_demux_meta->i_attachments, p_demux_meta->attachments );
input_attachment_t *p_attachment =
vlc_input_attachment_New( "cover", psz_format, "cover",
More information about the vlc-commits
mailing list