diff options
author | Max Kellermann <max@duempel.org> | 2013-07-30 00:03:36 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-07-30 00:03:36 +0200 |
commit | 46b9388bb0c867b1c80d9e8f037af56b862f5fd4 (patch) | |
tree | 168c78df11e67584f3d70a6d5c628ee85510b9ba /src | |
parent | a1a97d663ed9d2c251bc852248d5fe30861e4560 (diff) | |
download | mpd-46b9388bb0c867b1c80d9e8f037af56b862f5fd4.tar.gz mpd-46b9388bb0c867b1c80d9e8f037af56b862f5fd4.tar.xz mpd-46b9388bb0c867b1c80d9e8f037af56b862f5fd4.zip |
PcmConvert: don't memset() in the constructor
This destroys data inside PcmDsd and other attributes. It was once
necessary, but is not anymore.
Diffstat (limited to 'src')
-rw-r--r-- | src/pcm/PcmConvert.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pcm/PcmConvert.cxx b/src/pcm/PcmConvert.cxx index 383df9156..0a3fa6816 100644 --- a/src/pcm/PcmConvert.cxx +++ b/src/pcm/PcmConvert.cxx @@ -24,18 +24,16 @@ #include "pcm_pack.h" #include "audio_format.h" +#include <glib.h> + #include <assert.h> -#include <string.h> #include <math.h> -#include <glib.h> #undef G_LOG_DOMAIN #define G_LOG_DOMAIN "pcm" PcmConvert::PcmConvert() { - memset(this, 0, sizeof(*this)); - pcm_resample_init(&resample); pcm_buffer_init(&format_buffer); |