Skip to content
Snippets Groups Projects
Commit 0e07789f authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #14246: sdp: don't look for video codecs that aren't there

parent b2aed523
No related branches found
No related tags found
No related merge requests found
...@@ -470,6 +470,11 @@ string Sdp::getIncomingVideoDescription() const ...@@ -470,6 +470,11 @@ string Sdp::getIncomingVideoDescription() const
for (videoIdx = 0; videoIdx < activeLocalSession_->media_count and pj_stricmp2(&activeLocalSession_->media[videoIdx]->desc.media, "video") != 0; ++videoIdx) for (videoIdx = 0; videoIdx < activeLocalSession_->media_count and pj_stricmp2(&activeLocalSession_->media[videoIdx]->desc.media, "video") != 0; ++videoIdx)
; ;
if (videoIdx == activeLocalSession_->media_count) {
DEBUG("No video present in local session");
return ss.str();
}
// get direction string // get direction string
static const pj_str_t DIRECTIONS[] = { static const pj_str_t DIRECTIONS[] = {
{(char*) "sendrecv", 8}, {(char*) "sendrecv", 8},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment