[vlc-devel] [PATCH 2/2] taglib: process MP4 replaygain tags

Anatoliy Anischovich lin.aaa.lin at gmail.com
Tue Jul 29 00:13:47 CEST 2014


---
 modules/meta_engine/taglib.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/meta_engine/taglib.cpp b/modules/meta_engine/taglib.cpp
index d8ab1bf..31b60e5 100644
--- a/modules/meta_engine/taglib.cpp
+++ b/modules/meta_engine/taglib.cpp
@@ -632,6 +632,10 @@ static void ReadMetaFromMP4( MP4::Tag* tag, demux_meta_t *p_demux_meta, vlc_meta
 
     SET("----:com.apple.iTunes:MusicBrainz Track Id", TrackID );
     SET_EXTRA("----:com.apple.iTunes:MusicBrainz Album Id", VLC_META_EXTRA_MB_ALBUMID );
+    SET_EXTRA("----:com.apple.iTunes:replaygain_track_gain", VLC_META_EXTRA_RG_TRACK_GAIN );
+    SET_EXTRA("----:com.apple.iTunes:replaygain_track_peak", VLC_META_EXTRA_RG_TRACK_PEAK );
+    SET_EXTRA("----:com.apple.iTunes:replaygain_album_gain", VLC_META_EXTRA_RG_ALBUM_GAIN );
+    SET_EXTRA("----:com.apple.iTunes:replaygain_album_peak", VLC_META_EXTRA_RG_ALBUM_PEAK );
 
 #undef SET
 #undef SET_EXTRA
@@ -655,7 +659,6 @@ static void ReadMetaFromMP4( MP4::Tag* tag, demux_meta_t *p_demux_meta, vlc_meta
 }
 #endif
 
-
 /**
  * Get the tags from the file using TagLib
  * @param p_this: the demux object
-- 
2.0.1




More information about the vlc-devel mailing list