Skip to content
Snippets Groups Projects
Commit 52eb9695 authored by Rafaël Carré's avatar Rafaël Carré
Browse files

* #6392: Initialize std::string from pj_str_t correctly

parent 3af1c1c6
No related branches found
No related tags found
No related merge requests found
...@@ -76,7 +76,7 @@ void Sdp::setActiveLocalSdpSession (const pjmedia_sdp_session *sdp) ...@@ -76,7 +76,7 @@ void Sdp::setActiveLocalSdpSession (const pjmedia_sdp_session *sdp)
int port; int port;
pjmedia_sdp_media *current; pjmedia_sdp_media *current;
sdpMedia *media = NULL; sdpMedia *media = NULL;
std::string type, dir; std::string dir;
CodecsMap codecs_list; CodecsMap codecs_list;
pjmedia_sdp_attr *attribute = NULL; pjmedia_sdp_attr *attribute = NULL;
pjmedia_sdp_rtpmap *rtpmap; pjmedia_sdp_rtpmap *rtpmap;
...@@ -93,7 +93,7 @@ void Sdp::setActiveLocalSdpSession (const pjmedia_sdp_session *sdp) ...@@ -93,7 +93,7 @@ void Sdp::setActiveLocalSdpSession (const pjmedia_sdp_session *sdp)
for (int i = 0; i < nb_media ; i++) { for (int i = 0; i < nb_media ; i++) {
// Retrieve the media // Retrieve the media
current = activeLocalSession_->media[i]; current = activeLocalSession_->media[i];
type = current->desc.media.ptr; std::string type (current->desc.media.ptr, current->desc.media.slen);
port = current->desc.port; port = current->desc.port;
media = new sdpMedia (type, port); media = new sdpMedia (type, port);
// Retrieve the payload // Retrieve the payload
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment