Commit 0b9a5581 authored by Edric Milaret's avatar Edric Milaret

video: fix invalid currentSmartFrame check

Issue: #78496
Change-Id: I2d184f3706c3bbe92bd9d2471dfa873ae79abb44
parent 43f3c1e4
......@@ -60,7 +60,7 @@ VideoWidget::previewStopped() {
void
VideoWidget::frameFromPreview() {
if (previewRenderer_ && previewRenderer_->isRendering() && previewRenderer_->currentSmartFrame() != nullptr) {
if (previewRenderer_ && previewRenderer_->isRendering() && previewRenderer_->currentSmartFrame()) {
currentPreviewFrame_ = previewRenderer_->currentSmartFrame();
update();
}
......@@ -108,7 +108,7 @@ VideoWidget::callInitiated(Call* call, Video::Renderer *renderer) {
void
VideoWidget::frameFromDistant() {
if (renderer_ && renderer_->isRendering() && renderer_->currentSmartFrame() != nullptr) {
if (renderer_ && renderer_->isRendering() && renderer_->currentSmartFrame()) {
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