From 43eefe9c41478f5605e4abd7e6c7fc6d710341e8 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 17 Jan 2009 13:23:12 +0100 Subject: [PATCH] decoder_api: pass const pointer to decoder_data() --- src/decoder_api.c | 2 +- src/decoder_api.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/decoder_api.c b/src/decoder_api.c index 831fb24b2..a06eb8364 100644 --- a/src/decoder_api.c +++ b/src/decoder_api.c @@ -187,7 +187,7 @@ update_stream_tag(struct decoder *decoder, struct input_stream *is) enum decoder_command decoder_data(struct decoder *decoder, struct input_stream *is, - void *_data, size_t length, + const void *_data, size_t length, float data_time, uint16_t bitRate, struct replay_gain_info *replay_gain_info) { diff --git a/src/decoder_api.h b/src/decoder_api.h index 4e24c7b05..b4231e706 100644 --- a/src/decoder_api.h +++ b/src/decoder_api.h @@ -148,7 +148,8 @@ size_t decoder_read(struct decoder *decoder, enum decoder_command decoder_data(struct decoder *decoder, struct input_stream *inStream, - void *data, size_t datalen, float data_time, uint16_t bitRate, + const void *data, size_t datalen, + float data_time, uint16_t bitRate, struct replay_gain_info *replay_gain_info); /**