added parameter total_time to decoder_initialized()

Similar to the previous patch: pass total_time instead of manipulating
dc->totalTime directly.
This commit is contained in:
Max Kellermann
2008-08-26 08:27:05 +02:00
parent 4590a98f0e
commit 0d8b551c5a
14 changed files with 31 additions and 29 deletions

View File

@@ -25,7 +25,8 @@
#include "gcc.h"
void decoder_initialized(mpd_unused struct decoder * decoder,
const AudioFormat * audio_format)
const AudioFormat * audio_format,
float total_time)
{
assert(dc.state == DECODE_STATE_START);
@@ -35,6 +36,8 @@ void decoder_initialized(mpd_unused struct decoder * decoder,
&(ob.audioFormat));
}
dc.totalTime = total_time;
dc.state = DECODE_STATE_DECODE;
notify_signal(&pc.notify);
}