aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputPlugins
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-03-31 18:07:27 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-03-31 18:07:27 +0000
commit2215c1796d68f680fa92631eeb745a4af8ca5fde (patch)
treeca2fe8750b2852d30b5f6016ba93cedd4d62f154 /src/inputPlugins
parent5a734c0172647b8da986f5a82dd3a1778ae3b7a0 (diff)
downloadmpd-2215c1796d68f680fa92631eeb745a4af8ca5fde.tar.gz
mpd-2215c1796d68f680fa92631eeb745a4af8ca5fde.tar.xz
mpd-2215c1796d68f680fa92631eeb745a4af8ca5fde.zip
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
Diffstat (limited to 'src/inputPlugins')
-rw-r--r--src/inputPlugins/mod_plugin.c1
1 files changed, 1 insertions, 0 deletions
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;