GStreamer: Handle uppercase 'ID3 ' chunk in WAV files for ReplayGain tags

Fixed a bug in GStreamer’s wavparse element where ID3 tags embedded in WAV files were silently dropped when the chunk used the uppercase ID3 fourcc — as written by tools like loudgain . This caused ReplayGain volume normalization to silently fail for WAV files tagged with loudgain.

The RIFF/WAV container format identifies chunks by a four-character code (fourcc). GStreamer’s wavparse element already handled the lowercase id3 fourcc (0x69643320) to read embedded ID3v2 tags, but tools like loudgain write ID3 tags using the uppercase ID3 fourcc (0x49443320) — differing only in the case of the first three bytes. GStreamer had no case branch for the uppercase variant, so those chunks fell through to the default handler and were silently discarded, taking all embedded metadata (including ReplayGain track gain) with them.

Commit 830e8541a8 adds GST_RIFF_TAG_ID3 to riff-ids.h:

#define GST_RIFF_TAG_ID3  GST_MAKE_FOURCC ('I','D','3',' ')

and inserts it as a fall-through case immediately above the existing GST_RIFF_TAG_id3 handler in gstwavparse.c, so both variants are parsed identically through a single code path:

case GST_RIFF_TAG_ID3:
case GST_RIFF_TAG_id3:
{
    const guint data_size = size;
    ...
    GST_DEBUG_OBJECT (wav, "Have ID3 TAG, size: %u", data_size);
    ...
}

The debug message was also updated from the hardcoded string 'id3 ' to the generic ID3 TAG to accurately reflect that either variant can match.

Two new test cases were added to tests/check/elements/wavparse.c (129 lines across 3 files):

Reviewed and merged by Sebastian Dröge on 2026-05-29.

https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/11711