Basically, when the playlist grabs the song length, it assumes it is the same sample rate as the song being played. This generally isn't a problem, as most songs are 44.1 kHz. However, BEFORE a song is being played, the SAMPLERATE variable is set to 8000Hz, which results in quite incorrect song lengths being displayed in the playlist on startup.
Has anyone else noticed this bug before?
Well, I rewrote the StreamInfo struct to also include the SampleRate variable, and rewrote the ReadFileHeader function to read the SampleRate from the file in question. This function gets called when XMMS wants to know how long a song is when it's not playing it. Works like a charm
Is anybody interested in this patch? (xmix, i would guess you are heh)