From 1d012231e2a4b25d0f151c7a9b1047bd046f5ff0 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Mon, 18 Dec 2017 12:23:57 +0100 Subject: [PATCH] streaminfo: add fallback to delivery system detection Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/dac03ade1f7a9beb5849bcd98f378a8b3d640b80 Author: vanhofen Date: 2017-12-18 (Mon, 18 Dec 2017) Origin message was: ------------------ - streaminfo: add fallback to delivery system detection --- src/gui/streaminfo1.cpp | 2 ++ src/gui/streaminfo2.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/gui/streaminfo1.cpp b/src/gui/streaminfo1.cpp index fcb6b5445..d696c8346 100644 --- a/src/gui/streaminfo1.cpp +++ b/src/gui/streaminfo1.cpp @@ -764,6 +764,8 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos) snprintf(buf, sizeof(buf), "%s:",g_Locale->getText (LOCALE_CHANNELLIST_PROVS)); else if (CFrontend::isTerr(t.feparams.delsys)) snprintf(buf, sizeof(buf), "%s:",g_Locale->getText (LOCALE_TERRESTRIALSETUP_AREA)); + else + snprintf(buf, sizeof(buf), "Unknown:"); g_Font[font_info]->RenderString(xpos, ypos, box_width, buf, COL_MENUCONTENT_TEXT); diff --git a/src/gui/streaminfo2.cpp b/src/gui/streaminfo2.cpp index 48f6ac7d0..4cc01f3df 100644 --- a/src/gui/streaminfo2.cpp +++ b/src/gui/streaminfo2.cpp @@ -899,6 +899,8 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos) r.key = g_Locale->getText (LOCALE_CHANNELLIST_PROVS); else if (CFrontend::isTerr(t.feparams.delsys)) r.key = g_Locale->getText (LOCALE_TERRESTRIALSETUP_AREA); + else + r.key = "Unknown:"; r.key += ": "; r.val = CServiceManager::getInstance()->GetSatelliteName(channel->getSatellitePosition()).c_str();