aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/ChannelsConverter.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-23 22:44:53 +0200
committerMax Kellermann <max@duempel.org>2014-10-23 22:44:53 +0200
commit220f957cd8fb7f0c91e1bb39a50fa3829b28394a (patch)
treeabce63aaec5562c69f5176acb23c2f3fbce54e0b /src/pcm/ChannelsConverter.cxx
parent8ce48d83eb4d6f0d97359747f15e72dd1ef8760b (diff)
downloadmpd-220f957cd8fb7f0c91e1bb39a50fa3829b28394a.tar.gz
mpd-220f957cd8fb7f0c91e1bb39a50fa3829b28394a.tar.xz
mpd-220f957cd8fb7f0c91e1bb39a50fa3829b28394a.zip
pcm/ChannelsConverter: fix variable used to generate error message
Use the "_format" parameter instead of the (uninitialized) "format" attribute.
Diffstat (limited to '')
-rw-r--r--src/pcm/ChannelsConverter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm/ChannelsConverter.cxx b/src/pcm/ChannelsConverter.cxx
index f93f4f677..714613788 100644
--- a/src/pcm/ChannelsConverter.cxx
+++ b/src/pcm/ChannelsConverter.cxx
@@ -43,7 +43,7 @@ PcmChannelsConverter::Open(SampleFormat _format,
default:
error.Format(pcm_domain,
"PCM channel conversion for %s is not implemented",
- sample_format_to_string(format));
+ sample_format_to_string(_format));
return false;
}