- more cleanups

This commit is contained in:
2020-10-29 10:28:23 +02:00
parent 6554688cb7
commit 2a977af330
3 changed files with 4 additions and 4 deletions

View File

@@ -141,7 +141,7 @@ void AudioStream::addData(const void* buffer, int bytes)
if (mMediaObserver)
mMediaObserver->onMedia(buffer, bytes, MT::Stream::MediaDirection::Outgoing, this, mMediaObserverTag);
Codec* codec = NULL;
Codec* codec = nullptr;
{
Lock l(mMutex);
codec = mTransmittingCodec.get();
@@ -151,7 +151,7 @@ void AudioStream::addData(const void* buffer, int bytes)
// Resample
unsigned dstlen = unsigned(float(codec->samplerate() / float(AUDIO_SAMPLERATE)) * bytes);
Audio::Resampler* r = NULL;
Audio::Resampler* r = nullptr;
switch (codec->samplerate())
{
case 8000: r = &mCaptureResampler8; break;