CInfoViewerBB: fix infobar ratio webtv

Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>
This commit is contained in:
svenhoefer
2015-10-19 09:03:33 +02:00
parent bab181ab5b
commit 45968b339d
2 changed files with 4 additions and 2 deletions

View File

@@ -517,10 +517,11 @@ void CInfoViewerBB::showIcon_16_9()
{
if (!is_visible)
return;
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();
}
else
g_InfoViewer->aspectRatio = 0;