aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-26 14:31:00 +0100
committerMax Kellermann <max@duempel.org>2014-12-26 14:34:03 +0100
commit163597ef6939e4250afafe12f821aa732b1fc2b7 (patch)
tree0c69d95f66789dd27788e28638a99d3a32956eef /src/pcm
parent95f84afd338a9333b2fcf05dc171ce1dad6fbe7c (diff)
downloadmpd-163597ef6939e4250afafe12f821aa732b1fc2b7.tar.gz
mpd-163597ef6939e4250afafe12f821aa732b1fc2b7.tar.xz
mpd-163597ef6939e4250afafe12f821aa732b1fc2b7.zip
db/simple: fix implicit nullptr/bool conversion
Return false on error, not nullptr.
Diffstat (limited to 'src/pcm')
-rw-r--r--src/pcm/FormatConverter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pcm/FormatConverter.cxx b/src/pcm/FormatConverter.cxx
index b058b32f5..8874e1b3c 100644
--- a/src/pcm/FormatConverter.cxx
+++ b/src/pcm/FormatConverter.cxx
@@ -44,7 +44,7 @@ PcmFormatConverter::Open(SampleFormat _src_format, SampleFormat _dest_format,
"PCM conversion from %s to %s is not implemented",
sample_format_to_string(_src_format),
sample_format_to_string(_dest_format));
- return nullptr;
+ return false;
case SampleFormat::S16:
case SampleFormat::S24_P32: