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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user