diff options
author | Max Kellermann <max@duempel.org> | 2014-12-26 14:31:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-26 14:34:03 +0100 |
commit | 163597ef6939e4250afafe12f821aa732b1fc2b7 (patch) | |
tree | 0c69d95f66789dd27788e28638a99d3a32956eef /src/pcm/FormatConverter.cxx | |
parent | 95f84afd338a9333b2fcf05dc171ce1dad6fbe7c (diff) | |
download | mpd-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/FormatConverter.cxx')
-rw-r--r-- | src/pcm/FormatConverter.cxx | 2 |
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: |