Commit 0e07789f authored by Tristan Matthews's avatar Tristan Matthews

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

parent b2aed523
......@@ -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)
;
if (videoIdx == activeLocalSession_->media_count) {
DEBUG("No video present in local session");
return ss.str();
}
// get direction string
static const pj_str_t DIRECTIONS[] = {
{(char*) "sendrecv", 8},
......
Markdown is supported
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