Skip to content
Snippets Groups Projects
Commit 50ac03cf authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#4896] Update recording sampling rate when updating codec

parent 0559cfaf
No related branches found
No related tags found
No related merge requests found
......@@ -129,6 +129,9 @@ void AudioRtpSession::setSessionMedia (AudioCodec *audioCodec)
_debug ("AudioRtpSession: Setting static payload format");
setPayloadFormat (ost::StaticPayloadFormat ( (ost::StaticPayloadType) payloadType));
}
// Set recording sampling rate
_ca->setRecordingSmplRate (getCodecSampleRate());
}
void AudioRtpSession::updateSessionMedia (AudioCodec *audioCodec)
......@@ -161,6 +164,9 @@ void AudioRtpSession::updateSessionMedia (AudioCodec *audioCodec)
_debug ("AudioRtpSession: Setting static payload format");
setPayloadFormat (ost::StaticPayloadFormat ( (ost::StaticPayloadType) payloadType));
}
// Set recording sampling rate
_ca->setRecordingSmplRate (getCodecSampleRate());
}
......@@ -332,10 +338,6 @@ void AudioRtpSession::stopRtpThread ()
void AudioRtpSession::run ()
{
// Set recording sampling rate
_ca->setRecordingSmplRate (getCodecSampleRate());
_debug ("AudioRtpSession: Entering mainloop for call %s", _audioRtpRecord._callId.c_str());
uint32 timeout = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment