Skip to content
Snippets Groups Projects
Commit 251d6fd1 authored by François-Simon Fauteux-Chapleau's avatar François-Simon Fauteux-Chapleau
Browse files

sipcall: don't try to change media if media list is empty

GitLab: #978
Change-Id: I89644008fd6e8b22e1a1805778f3983ab9df7795
parent 2720993a
Branches
No related tags found
No related merge requests found
......@@ -2612,6 +2612,11 @@ SIPCall::requestMediaChange(const std::vector<libjami::MediaMap>& mediaList)
if (hasVideo)
mediaAttrList.emplace_back(videoAttr);
}
if (mediaAttrList.empty()) {
JAMI_ERROR("[call:{}] Invalid media change request: new media list is empty", getCallId());
return false;
}
JAMI_DEBUG("[call:{}] Requesting media change. List of new media:", getCallId());
unsigned idx = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment