streaminfo: fix resolution for webradio; ...

add channellogo to movieplayer-info too; not nice but informative


Origin commit data
------------------
Commit: 8d9bce4cd7
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-06 (Mon, 06 Nov 2017)

Origin message was:
------------------
- streaminfo: fix resolution for webradio; ...

add channellogo to movieplayer-info too; not nice but informative
This commit is contained in:
vanhofen
2017-11-06 00:40:13 +01:00
parent cf431b1c92
commit 2115641aca

View File

@@ -549,7 +549,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
average_bitrate_offset = spaceoffset;
int box_width2 = box_width-(spaceoffset+xpos);
if((channel->getVideoPid() || IS_WEBCHAN(channel->getChannelID())) && !(videoDecoder->getBlank())){
if((channel->getVideoPid() || (IS_WEBCHAN(channel->getChannelID()) && CNeutrinoApp::getInstance()->getMode() == NeutrinoMessages::mode_webtv)) && !(videoDecoder->getBlank())){
videoDecoder->getPictureInfo(xres, yres, framerate);
if (yres == 1088)
yres = 1080;
@@ -740,6 +740,17 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
g_Font[font_info]->RenderString (xpos+spaceoffset, ypos, box_width2, buf, COL_MENUCONTENT_TEXT);
}
// paint labels
int fontW = g_Font[font_small]->getWidth();
spaceoffset = 7 * fontW;
box_width2 = box_width-(spaceoffset+xpos);
//channellogo
ypos+= sheight;
sprintf(buf, "%llx.png", channel->getChannelID() & 0xFFFFFFFFFFFFULL);
g_Font[font_small]->RenderString(xpos, ypos, box_width, "Logo:" , COL_INFOBAR_TEXT);
g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, box_width2, buf, COL_INFOBAR_TEXT);
scaling = 27000;
} else {