From 3c3c33c5d2668f6e05cd448a04a3fbd7b3f527c5 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 14 Dec 2015 08:31:30 +0100 Subject: [PATCH] streaminfo: show movieplayer as source, when no webtv is running Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/ad3a2f701b1a85f8ea40a3af28cccb55c9b20431 Author: vanhofen Date: 2015-12-14 (Mon, 14 Dec 2015) Origin message was: ------------------ - streaminfo: show movieplayer as source, when no webtv is running --- src/gui/streaminfo2.cpp | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/gui/streaminfo2.cpp b/src/gui/streaminfo2.cpp index 55f8e9304..4d3a592d1 100644 --- a/src/gui/streaminfo2.cpp +++ b/src/gui/streaminfo2.cpp @@ -273,12 +273,17 @@ void CStreamInfo2::paint_signal_fe_box(int _x, int _y, int w, int h) int y1; int xd = w/4; - std::string tname(g_Locale->getText(LOCALE_STREAMINFO_SIGNAL)); - tname += ": "; - if (mp) - tname += g_Locale->getText(LOCALE_WEBTV_HEAD); - else - tname += to_string(1 + frontend->getNumber()) + ": " + frontend->getName(); + std::string tname(g_Locale->getText(LOCALE_STREAMINFO_SIGNAL)); + tname += ": "; + if (mp) + { + if (CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webtv) + tname += g_Locale->getText(LOCALE_WEBTV_HEAD); + else + tname += g_Locale->getText(LOCALE_MAINMENU_MOVIEPLAYER); + } + else + tname += to_string(1 + frontend->getNumber()) + ": " + frontend->getName(); #if 0 int tuner = 1 + frontend->getNumber();