DecoderAPI: pass SignedSongTime to decoder_initialized()

This commit is contained in:
Max Kellermann
2014-08-29 20:52:39 +02:00
parent 94f6380d69
commit d9d97bd17b
26 changed files with 159 additions and 132 deletions

View File

@@ -30,7 +30,7 @@ void
decoder_initialized(Decoder &decoder,
const AudioFormat audio_format,
gcc_unused bool seekable,
float duration)
SignedSongTime duration)
{
struct audio_format_string af_string;
@@ -39,7 +39,7 @@ decoder_initialized(Decoder &decoder,
fprintf(stderr, "audio_format=%s duration=%f\n",
audio_format_to_string(audio_format, &af_string),
duration);
duration.ToDoubleS());
decoder.initialized = true;
}