diff options
author | wm4 <wm4@nowhere> | 2014-10-10 13:44:08 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-10-10 13:44:08 +0200 |
commit | 26bc6b48313dd0470a3998dace217148fc314271 (patch) | |
tree | 29073579b973380a248c89f4d4a8b2a97aa7e671 /audio | |
parent | 7e4491a7a7e9ab41b38fd2ecb58f7b11731c9e05 (diff) | |
download | mpv-26bc6b48313dd0470a3998dace217148fc314271.tar.bz2 mpv-26bc6b48313dd0470a3998dace217148fc314271.tar.xz |
Add some missing "const"s
The one in msg.c was mistakenly removed with commit e99a37f6.
I didn't actually test the change in ao_sndio.c (but obviously "ap"
shouldn't be static).
Diffstat (limited to 'audio')
-rw-r--r-- | audio/out/ao_sdl.c | 2 | ||||
-rw-r--r-- | audio/out/ao_sndio.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/audio/out/ao_sdl.c b/audio/out/ao_sdl.c index d2362a723e..91554d71fe 100644 --- a/audio/out/ao_sdl.c +++ b/audio/out/ao_sdl.c @@ -38,7 +38,7 @@ struct priv float buflen; }; -static int fmtmap[][2] = { +static const int fmtmap[][2] = { {AF_FORMAT_U8, AUDIO_U8}, {AF_FORMAT_S8, AUDIO_S8}, {AF_FORMAT_U16, AUDIO_U16SYS}, diff --git a/audio/out/ao_sndio.c b/audio/out/ao_sndio.c index 6afe0f9eaf..c528d5729d 100644 --- a/audio/out/ao_sndio.c +++ b/audio/out/ao_sndio.c @@ -111,7 +111,8 @@ static int init(struct ao *ao) struct af_to_par { int format, bits, sig; - } static const af_to_par[] = { + }; + static const struct af_to_par af_to_par[] = { {AF_FORMAT_U8, 8, 0}, {AF_FORMAT_S8, 8, 1}, {AF_FORMAT_U16, 16, 0}, @@ -120,7 +121,8 @@ static int init(struct ao *ao) {AF_FORMAT_S24, 24, 1}, {AF_FORMAT_U32, 32, 0}, {AF_FORMAT_S32, 32, 1}, - }, *ap; + }; + const struct af_to_par *ap; int i; p->hdl = sio_open(p->dev, SIO_PLAY, 1); |