Commit 8a84a26c authored by Ronan Abhamon's avatar Ronan Abhamon

fix(Camera): test video definition in notifyReceivedVideoSize, can be null if...

fix(Camera): test video definition in notifyReceivedVideoSize, can be null if receiver disconnects at first frame received
parent a5291ce8
......@@ -156,6 +156,11 @@ void CameraRenderer::updateWindowId () {
bool CameraRenderer::notifyReceivedVideoSize () const {
shared_ptr<const linphone::VideoDefinition> videoDefinition = mCall->getCurrentParams()->getReceivedVideoDefinition();
// Can be null if the receiver quickly disconnects. Rare but possible.
if (!videoDefinition)
return false;
unsigned int width = videoDefinition->getWidth();
unsigned int height = videoDefinition->getHeight();
......
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