aboutsummaryrefslogtreecommitdiffstats
path: root/src/output
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-01-07 18:50:38 +0100
committerMax Kellermann <max@duempel.org>2015-01-07 18:50:38 +0100
commitdc03ad05be392af71c2d41f8a0b9521e0b14b614 (patch)
tree2adc6309e797f3a812772834e80bfde44f242431 /src/output
parenta62df3cb8f0770d3c64381d00e3ec41e1edcc116 (diff)
downloadmpd-dc03ad05be392af71c2d41f8a0b9521e0b14b614.tar.gz
mpd-dc03ad05be392af71c2d41f8a0b9521e0b14b614.tar.xz
mpd-dc03ad05be392af71c2d41f8a0b9521e0b14b614.zip
output/oss: add "const" attributes
Diffstat (limited to 'src/output')
-rw-r--r--src/output/plugins/OssOutputPlugin.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/output/plugins/OssOutputPlugin.cxx b/src/output/plugins/OssOutputPlugin.cxx
index 3e65f56b7..b895046f0 100644
--- a/src/output/plugins/OssOutputPlugin.cxx
+++ b/src/output/plugins/OssOutputPlugin.cxx
@@ -421,6 +421,7 @@ oss_setup_sample_rate(int fd, AudioFormat &audio_format,
* Convert a MPD sample format to its OSS counterpart. Returns
* AFMT_QUERY if there is no direct counterpart.
*/
+gcc_const
static int
sample_format_to_oss(SampleFormat format)
{
@@ -459,6 +460,7 @@ sample_format_to_oss(SampleFormat format)
* Convert an OSS sample format to its MPD counterpart. Returns
* SampleFormat::UNDEFINED if there is no direct counterpart.
*/
+gcc_const
static SampleFormat
sample_format_from_oss(int format)
{