Set totalTime to 0 for MODs. If this isn't done, the totalTime of the

previous song played will be reused.

git-svn-id: https://svn.musicpd.org/mpd/trunk@5791 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
J. Alexander Treuman 2007-03-31 18:07:27 +00:00
parent 5a734c0172
commit 2215c1796d

View File

@ -185,6 +185,7 @@ static int mod_decode(OutputBuffer * cb, DecoderControl * dc, char *path)
return -1;
}
dc->totalTime = 0;
dc->audioFormat.bits = 16;
dc->audioFormat.sampleRate = 44100;
dc->audioFormat.channels = 2;