Skip to content
Snippets Groups Projects
Commit 1c647ec2 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

video: catch out of range exception when setting time

Change-Id: I4540324904ddd152d40169d47a7a5e3cddf0d358
parent 03046850
Branches
No related tags found
No related merge requests found
...@@ -88,7 +88,7 @@ void ...@@ -88,7 +88,7 @@ void
VideoOverlay::setTime() VideoOverlay::setTime()
{ {
if (callId.empty()) { return; } if (callId.empty()) { return; }
try {
auto callInfo = LRCInstance::getCurrentCallModel()->getCall(callId); auto callInfo = LRCInstance::getCurrentCallModel()->getCall(callId);
if (callInfo.status == lrc::api::call::Status::IN_PROGRESS) { if (callInfo.status == lrc::api::call::Status::IN_PROGRESS) {
...@@ -114,6 +114,7 @@ VideoOverlay::setTime() ...@@ -114,6 +114,7 @@ VideoOverlay::setTime()
ui->timerLabel->setText(labelMin + labelSec); ui->timerLabel->setText(labelMin + labelSec);
} }
} catch (...) { }
} }
void VideoOverlay::toggleContextButtons(bool visible) void VideoOverlay::toggleContextButtons(bool visible)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment