From c44c807710e963ff9ec69fbb685a04256186b0c1 Mon Sep 17 00:00:00 2001 From: GetAway Date: Tue, 13 Nov 2018 20:52:29 +0100 Subject: [PATCH] streaminfo2.cpp: show resolution in TS_MODE if no channel is tuned Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/307eea9fc735bbf98084cba33dca4ae65853b5ab Author: GetAway Date: 2018-11-13 (Tue, 13 Nov 2018) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/streaminfo2.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/gui/streaminfo2.cpp b/src/gui/streaminfo2.cpp index 275bafbf2..edfeb4a7f 100644 --- a/src/gui/streaminfo2.cpp +++ b/src/gui/streaminfo2.cpp @@ -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); if (yres == 1088)