CInfoViewerBB: fix infobar ratio webtv

Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>


Origin commit data
------------------
Branch: ni/coolstream
Commit: 45968b339d
Author: vanhofen <vanhofen@gmx.de>
Date: 2015-10-19 (Mon, 19 Oct 2015)



------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2015-10-19 09:03:33 +02:00
parent e0be05c790
commit 09d2eb6e89
2 changed files with 4 additions and 2 deletions

View File

@@ -179,6 +179,7 @@ class CInfoViewer
bool SDT_freq_update; bool SDT_freq_update;
void setUpdateTimer(uint64_t interval); void setUpdateTimer(uint64_t interval);
uint32_t getUpdateTimer(void) { return lcdUpdateTimer; } uint32_t getUpdateTimer(void) { return lcdUpdateTimer; }
inline t_channel_id get_current_channel_id(void) { return current_channel_id; }
}; };
#if 0 #if 0
class CInfoViewerHandler : public CMenuTarget class CInfoViewerHandler : public CMenuTarget

View File

@@ -517,10 +517,11 @@ void CInfoViewerBB::showIcon_16_9()
{ {
if (!is_visible) if (!is_visible)
return; return;
if ((g_InfoViewer->aspectRatio == 0) || ( g_RemoteControl->current_PIDs.PIDs.vpid == 0 ) || (g_InfoViewer->aspectRatio != videoDecoder->getAspectRatio())) { if ((g_InfoViewer->aspectRatio == 0) || ( g_RemoteControl->current_PIDs.PIDs.vpid == 0 ) || (g_InfoViewer->aspectRatio != videoDecoder->getAspectRatio())) {
if (g_InfoViewer->chanready && g_RemoteControl->current_PIDs.PIDs.vpid > 0 ) { if (g_InfoViewer->chanready &&
(g_RemoteControl->current_PIDs.PIDs.vpid > 0 || IS_WEBTV(g_InfoViewer->get_current_channel_id())))
g_InfoViewer->aspectRatio = videoDecoder->getAspectRatio(); g_InfoViewer->aspectRatio = videoDecoder->getAspectRatio();
}
else else
g_InfoViewer->aspectRatio = 0; g_InfoViewer->aspectRatio = 0;