From 245637c2b246267c2d25a2aaadaff497819de836 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Tue, 8 Jan 2008 20:29:27 +0000 Subject: [PATCH] correctly de-initializes codec (fixes problems with mulaw/alaw files) git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@588 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmAudio.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/AmAudio.cpp b/core/AmAudio.cpp index 7f283ef2..cb9d368c 100644 --- a/core/AmAudio.cpp +++ b/core/AmAudio.cpp @@ -128,7 +128,7 @@ AmAudioRtpFormat::~AmAudioRtpFormat() } AmAudioFormat::AmAudioFormat() - : channels(-1), rate(-1), codec(0), + : channels(-1), rate(-1), codec(NULL), frame_length(20), frame_size(160), frame_encoded_size(320) { @@ -229,6 +229,7 @@ void AmAudioFormat::destroyCodec() (*codec->destroy)(h_codec); h_codec = 0; } + codec = NULL; } amci_subtype_t* AmAudioFileFormat::getSubtype()