Hi,
while playing with my theme I noticed that the
replay gain token (%rg) gives random strings when
the track has no replay gain tags and the mode
is set to REPLAYGAIN_SHUFFLE.
intval becomes 8 and string buf is uninitialized.
I think, moving the "if (global_settings...)" into
the preceding "else" should fix it.
skin_tokens.c around line 1388:
if (type < 0)
val = 6; /* no tag */
else
+ {
val = type + 2;
if (global_settings.replaygain_type == REPLAYGAIN_SHUFFLE)
val += 2;
+ }
Ciao, ET.
PS: Wishlist: a mono/stereo wps token