Commit 46b9388b authored by Max Kellermann's avatar Max Kellermann

PcmConvert: don't memset() in the constructor

This destroys data inside PcmDsd and other attributes. It was once necessary, but is not anymore.
parent a1a97d66
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment