diff options
author | Max Kellermann <max@duempel.org> | 2008-10-31 15:56:43 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-10-31 15:56:43 +0100 |
commit | 78448fe1a517aa7734ae14a6959d3f7e0182308e (patch) | |
tree | b221a3953ee761305b318877ddd5efb42d5f44e4 /src/decoder/audiofile_plugin.c | |
parent | 6d6e615825022647650df5cb88a05e3cd2dc42de (diff) | |
download | mpd-78448fe1a517aa7734ae14a6959d3f7e0182308e.tar.gz mpd-78448fe1a517aa7734ae14a6959d3f7e0182308e.tar.xz mpd-78448fe1a517aa7734ae14a6959d3f7e0182308e.zip |
decoder_api: pass constant path pointers
Diffstat (limited to '')
-rw-r--r-- | src/decoder/audiofile_plugin.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); |