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:
parent
5a734c0172
commit
2215c1796d
@ -185,6 +185,7 @@ static int mod_decode(OutputBuffer * cb, DecoderControl * dc, char *path)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dc->totalTime = 0;
|
||||||
dc->audioFormat.bits = 16;
|
dc->audioFormat.bits = 16;
|
||||||
dc->audioFormat.sampleRate = 44100;
|
dc->audioFormat.sampleRate = 44100;
|
||||||
dc->audioFormat.channels = 2;
|
dc->audioFormat.channels = 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user