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
sayer/1.4-spce2.6
Stefan Sayer 19 years ago
parent 6a66a9507c
commit 245637c2b2

@ -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()

Loading…
Cancel
Save