Commit 331fe61c authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #18261: sdp: fix function name

parent 013d54d3
......@@ -199,7 +199,7 @@ void Sdp::getSessionAudioMedia(std::vector<sfl::AudioCodec*> &codecs) const
pjmedia_sdp_media *
Sdp::setMediaDescriptorLine(bool audio)
Sdp::setMediaDescriptorLines(bool audio)
{
pjmedia_sdp_media *med = PJ_POOL_ZALLOC_T(memPool_, pjmedia_sdp_media);
......@@ -367,9 +367,9 @@ int Sdp::createLocalSession(const vector<int> &selectedAudioCodecs, const vector
// For DTMF RTP events
const bool audio = true;
localSession_->media_count = 1;
localSession_->media[0] = setMediaDescriptorLine(audio);
localSession_->media[0] = setMediaDescriptorLines(audio);
if (not selectedVideoCodecs.empty()) {
localSession_->media[1] = setMediaDescriptorLine(!audio);
localSession_->media[1] = setMediaDescriptorLines(!audio);
++localSession_->media_count;
}
......
......@@ -323,7 +323,7 @@ class Sdp {
* Build the sdp media section
* Add rtpmap field if necessary
*/
pjmedia_sdp_media *setMediaDescriptorLine(bool audio);
pjmedia_sdp_media *setMediaDescriptorLines(bool audio);
void setTelephoneEventRtpmap(pjmedia_sdp_media *med);
......
Supports Markdown
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