streaminfo1.cpp: show resolution in TS_MODE if no channel is tuned

This commit is contained in:
GetAway
2018-10-20 14:49:28 +02:00
parent b2572ce46f
commit afcf709c5e

View File

@@ -549,11 +549,16 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
average_bitrate_offset = spaceoffset; average_bitrate_offset = spaceoffset;
int box_width2 = box_width-(spaceoffset+xpos); int box_width2 = box_width-(spaceoffset+xpos);
if((channel->getVideoPid() || (IS_WEBCHAN(channel->getChannelID()) && CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv)) && !(videoDecoder->getBlank())){ int _mode = CNeutrinoApp::getInstance()->getMode();
videoDecoder->getPictureInfo(xres, yres, framerate); if ((channel->getVideoPid() ||
if (yres == 1088) (IS_WEBCHAN(channel->getChannelID()) && _mode == NeutrinoModes::mode_webtv) ||
yres = 1080; _mode == NeutrinoModes::mode_ts) &&
aspectRatio = videoDecoder->getAspectRatio(); !(videoDecoder->getBlank()))
{
videoDecoder->getPictureInfo(xres, yres, framerate);
if (yres == 1088)
yres = 1080;
aspectRatio = videoDecoder->getAspectRatio();
} }
//Video RESOLUTION //Video RESOLUTION