From 7f850f933b286b1c41d30114072f02c5bd4843cb Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Wed, 30 Sep 2020 21:07:36 +0200 Subject: [PATCH] - lcd4l: show event in webtv/webradio mode Signed-off-by: Thilo Graf --- src/driver/lcd4l.cpp | 7 +++++++ src/gui/infoviewer.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/driver/lcd4l.cpp b/src/driver/lcd4l.cpp index db41ee095..de7e66e6a 100644 --- a/src/driver/lcd4l.cpp +++ b/src/driver/lcd4l.cpp @@ -50,6 +50,7 @@ #include #include #include +#include #include #include #include @@ -932,6 +933,12 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun) tm_struct = localtime(&next_start_time); snprintf(End, sizeof(End), "%02d:%02d", tm_struct->tm_hour, tm_struct->tm_min); } + + if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio) + { + // FIXME: Doesn't work with timing.infobar_tv/radio=0 + Event = g_InfoViewer->get_livestreamInfo1(); + } } else if (parseID == NeutrinoModes::mode_audio) { diff --git a/src/gui/infoviewer.h b/src/gui/infoviewer.h index ce08e3ca5..caca5dfb4 100644 --- a/src/gui/infoviewer.h +++ b/src/gui/infoviewer.h @@ -202,6 +202,8 @@ class CInfoViewer : public sigc::trackable int getSwitchMode() {return zap_mode;} void resetSwitchMode() {setSwitchMode(IV_MODE_DEFAULT);} + std::string get_livestreamInfo1() { return _livestreamInfo1; } + void changePB(); void ResetPB(); void showSNR();