PcmConvert: don't memset() in the constructor

This destroys data inside PcmDsd and other attributes.  It was once
necessary, but is not anymore.
This commit is contained in:
Max Kellermann 2013-07-30 00:03:36 +02:00
parent a1a97d663e
commit 46b9388bb0
1 changed files with 3 additions and 5 deletions

View File

@ -24,18 +24,16 @@
#include "pcm_pack.h"
#include "audio_format.h"
#include <assert.h>
#include <string.h>
#include <math.h>
#include <glib.h>
#include <assert.h>
#include <math.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);