aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_api.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-02 17:01:51 +0100
committerMax Kellermann <max@duempel.org>2008-11-02 17:01:51 +0100
commitc9e15bc418d4a27305b39ccc63e631ac5e329c8b (patch)
tree0e97c8b6c829f464374d3b2cbcbc3fb01e4bebe4 /src/decoder_api.h
parentc7a374bdcbe85a794b047c638e57b9358d2d095b (diff)
downloadmpd-c9e15bc418d4a27305b39ccc63e631ac5e329c8b.tar.gz
mpd-c9e15bc418d4a27305b39ccc63e631ac5e329c8b.tar.xz
mpd-c9e15bc418d4a27305b39ccc63e631ac5e329c8b.zip
decoder_api: pass "seekable" flag to decoder_initialized()
Don't pass the "seekable" flag with every decoder_data() invocation. Since that flag won't change within the file, it is enough to pass it to decoder_initialized() once per file.
Diffstat (limited to 'src/decoder_api.h')
-rw-r--r--src/decoder_api.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decoder_api.h b/src/decoder_api.h
index 911a4e3eb..a755dd3c9 100644
--- a/src/decoder_api.h
+++ b/src/decoder_api.h
@@ -116,7 +116,7 @@ struct decoder;
*/
void decoder_initialized(struct decoder * decoder,
const struct audio_format *audio_format,
- float total_time);
+ bool seekable, float total_time);
const char *decoder_get_url(struct decoder * decoder, char * buffer);
@@ -151,7 +151,7 @@ size_t decoder_read(struct decoder *decoder,
*/
enum decoder_command
decoder_data(struct decoder *decoder,
- struct input_stream *inStream, int seekable,
+ struct input_stream *inStream,
void *data, size_t datalen, float data_time, uint16_t bitRate,
ReplayGainInfo * replayGainInfo);