Return to lobby when the video is stalled

This commit is contained in:
Guillaume Meunier
2024-02-18 09:03:46 +01:00
parent 554b62e643
commit 8d408c0792
5 changed files with 28 additions and 12 deletions
+7 -1
View File
@@ -23,6 +23,7 @@
#include "imgui_internal.h"
#include "lobby.h"
#include "version.h"
#include "stream.h"
#include <spdlog/fmt/fmt.h>
#include <utils/strings.h>
@@ -71,7 +72,12 @@ void scenes::lobby::gui_connecting()
std::string status;
if (next_scene)
status = "Waiting for video stream";
{
if (next_scene->current_state() == scenes::stream::state::stalled)
status = "Video stream interrupted";
else
status = "Waiting for video stream";
}
else if (async_session.valid())
status = async_session.get_progress();
else if (async_error)