Commit f7e97c9a authored by Max Kellermann's avatar Max Kellermann Committed by Eric Wong

constant pointers

There were some const pointers missing in the previous const-cleanup patch. git-svn-id: https://svn.musicpd.org/mpd/trunk@7290 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 05c41a80
...@@ -444,8 +444,8 @@ static MpdTag *aacTagDup(char *file) ...@@ -444,8 +444,8 @@ static MpdTag *aacTagDup(char *file)
return ret; return ret;
} }
static char *aac_suffixes[] = { "aac", NULL }; static const char *aac_suffixes[] = { "aac", NULL };
static char *aac_mimeTypes[] = { "audio/aac", "audio/aacp", NULL }; static const char *aac_mimeTypes[] = { "audio/aac", "audio/aacp", NULL };
InputPlugin aacPlugin = { InputPlugin aacPlugin = {
"aac", "aac",
......
...@@ -414,8 +414,8 @@ static MpdTag *mp4TagDup(char *file) ...@@ -414,8 +414,8 @@ static MpdTag *mp4TagDup(char *file)
return ret; return ret;
} }
static char *mp4_suffixes[] = { "m4a", "mp4", NULL }; static const char *mp4_suffixes[] = { "m4a", "mp4", NULL };
static char *mp4_mimeTypes[] = { "audio/mp4", "audio/m4a", NULL }; static const char *mp4_mimeTypes[] = { "audio/mp4", "audio/m4a", NULL };
InputPlugin mp4Plugin = { InputPlugin mp4Plugin = {
"mp4", "mp4",
......
...@@ -182,7 +182,7 @@ out: ...@@ -182,7 +182,7 @@ out:
#ifdef HAVE_LIBSAMPLERATE #ifdef HAVE_LIBSAMPLERATE
static size_t pcm_convertSampleRate(mpd_sint8 channels, mpd_uint32 inSampleRate, static size_t pcm_convertSampleRate(mpd_sint8 channels, mpd_uint32 inSampleRate,
char *inBuffer, size_t inSize, const char *inBuffer, size_t inSize,
mpd_uint32 outSampleRate, char *outBuffer, mpd_uint32 outSampleRate, char *outBuffer,
size_t outSize, ConvState *convState) size_t outSize, ConvState *convState)
{ {
...@@ -297,7 +297,7 @@ static size_t pcm_convertSampleRate(mpd_sint8 channels, mpd_uint32 inSampleRate, ...@@ -297,7 +297,7 @@ static size_t pcm_convertSampleRate(mpd_sint8 channels, mpd_uint32 inSampleRate,
} }
#endif /* !HAVE_LIBSAMPLERATE */ #endif /* !HAVE_LIBSAMPLERATE */
static char *pcm_convertChannels(mpd_sint8 channels, char *inBuffer, static char *pcm_convertChannels(mpd_sint8 channels, const char *inBuffer,
size_t inSize, size_t *outSize) size_t inSize, size_t *outSize)
{ {
static char *buf; static char *buf;
...@@ -351,8 +351,8 @@ static char *pcm_convertChannels(mpd_sint8 channels, char *inBuffer, ...@@ -351,8 +351,8 @@ static char *pcm_convertChannels(mpd_sint8 channels, char *inBuffer,
return outBuffer; return outBuffer;
} }
static char *pcm_convertTo16bit(mpd_sint8 bits, const char *inBuffer, static const char *pcm_convertTo16bit(mpd_sint8 bits, const char *inBuffer,
size_t inSize, size_t *outSize) size_t inSize, size_t *outSize)
{ {
static char *buf; static char *buf;
static size_t len; static size_t len;
...@@ -393,7 +393,7 @@ size_t pcm_convertAudioFormat(AudioFormat * inFormat, const char *inBuffer, ...@@ -393,7 +393,7 @@ size_t pcm_convertAudioFormat(AudioFormat * inFormat, const char *inBuffer,
size_t inSize, AudioFormat * outFormat, size_t inSize, AudioFormat * outFormat,
char *outBuffer, ConvState *convState) char *outBuffer, ConvState *convState)
{ {
char *buf; const char *buf;
size_t len; size_t len;
size_t outSize = pcm_sizeOfConvBuffer(inFormat, inSize, outFormat); size_t outSize = pcm_sizeOfConvBuffer(inFormat, inSize, outFormat);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment