Commit c963ed28 authored by Edric Milaret's avatar Edric Milaret

video: check for null pointer frame

Refs #75280

Change-Id: Ie51da62c2f8283b65125db90044abb84ceed98e6
parent c1bb185a
......@@ -62,7 +62,7 @@ VideoWidget::previewStopped() {
void
VideoWidget::frameFromPreview() {
if (previewRenderer_ && previewRenderer_->isRendering()) {
if (previewRenderer_ && previewRenderer_->isRendering() && previewRenderer_->currentSmartFrame() != nullptr) {
currentPreviewFrame_ = previewRenderer_->currentSmartFrame();
update();
}
......@@ -112,7 +112,7 @@ VideoWidget::callInitiated(Call* call, Video::Renderer *renderer) {
void
VideoWidget::frameFromDistant() {
if (renderer_ && renderer_->isRendering()) {
if (renderer_ && renderer_->isRendering() && renderer_->currentSmartFrame() != nullptr) {
currentDistantFrame_ = renderer_->currentSmartFrame();
update();
}
......
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