diff options
author | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:05 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-26 08:27:05 +0200 |
commit | 0d8b551c5a3aeadfd6901469946078d5a95ecb42 (patch) | |
tree | 3fd36e06ef46dfcfc7f9e426b42668318aec8d59 /src/decoder_api.c | |
parent | 4590a98f0eb9484e185e7e0c25a3373c8e9076ea (diff) | |
download | mpd-0d8b551c5a3aeadfd6901469946078d5a95ecb42.tar.gz mpd-0d8b551c5a3aeadfd6901469946078d5a95ecb42.tar.xz mpd-0d8b551c5a3aeadfd6901469946078d5a95ecb42.zip |
added parameter total_time to decoder_initialized()
Similar to the previous patch: pass total_time instead of manipulating
dc->totalTime directly.
Diffstat (limited to '')
-rw-r--r-- | src/decoder_api.c | 5 |
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); } |