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

This commit is contained in:
GetAway
2018-11-13 15:51:18 +01:00
parent 5b5e11f327
commit a6c77ece34

View File

@@ -945,7 +945,12 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
} }
} }
if (((mp && IS_WEBCHAN(channel->getChannelID()) && CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv) || channel->getVideoPid()) && !(videoDecoder->getBlank()))
int _mode = CNeutrinoApp::getInstance()->getMode();
if ((channel->getVideoPid() ||
(IS_WEBCHAN(channel->getChannelID()) && _mode == NeutrinoModes::mode_webtv) ||
_mode == NeutrinoModes::mode_ts) &&
!(videoDecoder->getBlank()))
{ {
videoDecoder->getPictureInfo(xres, yres, framerate); videoDecoder->getPictureInfo(xres, yres, framerate);
if (yres == 1088) if (yres == 1088)