From 2215c1796d68f680fa92631eeb745a4af8ca5fde Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" Date: Sat, 31 Mar 2007 18:07:27 +0000 Subject: 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 --- src/inputPlugins/mod_plugin.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/inputPlugins/mod_plugin.c b/src/inputPlugins/mod_plugin.c index 0ac72b838..497986104 100644 --- a/src/inputPlugins/mod_plugin.c +++ b/src/inputPlugins/mod_plugin.c @@ -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; -- cgit v1.2.3