From 3183aeabacfdf16319f6a998518c405c3eede9dd Mon Sep 17 00:00:00 2001 From: Magnus Holmgren Date: Thu, 7 Dec 2006 16:15:23 +0000 Subject: AAC/ALAC: Fix display of ReplayGain values (e.g., in the ID3 Info screen). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11683 a1c6a512-1295-4272-9138-f99709370657 --- apps/metadata.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'apps/metadata.c') diff --git a/apps/metadata.c b/apps/metadata.c index d6b02966f6..dcbc29e73c 100644 --- a/apps/metadata.c +++ b/apps/metadata.c @@ -1276,9 +1276,14 @@ static bool read_mp4_tags(int fd, struct mp3entry* id3, /* Re-use the read buffer as the dest buffer... */ buffer -= length; buffer_left += length; - - parse_replaygain(tag_name, buffer, id3, buffer, - buffer_left); + + if (parse_replaygain(tag_name, buffer, id3, + buffer, buffer_left) > 0) + { + /* Data used, keep it. */ + buffer += length; + buffer_left -= length; + } } } } -- cgit v1.2.3