aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_api.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/decoder_api.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c
index 9583c7493..3c0e0ea61 100644
--- a/src/decoder_api.c
+++ b/src/decoder_api.c
@@ -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);
}