From 78448fe1a517aa7734ae14a6959d3f7e0182308e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 31 Oct 2008 15:56:43 +0100 Subject: decoder_api: pass constant path pointers --- src/decoder/audiofile_plugin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/decoder/audiofile_plugin.c') diff --git a/src/decoder/audiofile_plugin.c b/src/decoder/audiofile_plugin.c index 5c1e0a0d0..8f493d1ed 100644 --- a/src/decoder/audiofile_plugin.c +++ b/src/decoder/audiofile_plugin.c @@ -27,7 +27,7 @@ /* pick 1020 since its devisible for 8,16,24, and 32-bit audio */ #define CHUNK_SIZE 1020 -static int getAudiofileTotalTime(char *file) +static int getAudiofileTotalTime(const char *file) { int total_time; AFfilehandle af_fp = afOpenFile(file, "r", NULL); @@ -42,7 +42,7 @@ static int getAudiofileTotalTime(char *file) } static bool -audiofile_decode(struct decoder *decoder, char *path) +audiofile_decode(struct decoder *decoder, const char *path) { int fs, frame_count; AFfilehandle af_fp; @@ -115,7 +115,7 @@ audiofile_decode(struct decoder *decoder, char *path) return true; } -static struct tag *audiofileTagDup(char *file) +static struct tag *audiofileTagDup(const char *file) { struct tag *ret = NULL; int total_time = getAudiofileTotalTime(file); -- cgit v1.2.3