mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-26 16:28:11 +00:00
fix(Camera): test video definition in notifyReceivedVideoSize, can be null if receiver disconnects at first frame received
This commit is contained in:
parent
a5291ce836
commit
8a84a26cfa
1 changed files with 5 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue