From bb086cf6c53d18c8b9e7d488f1eb78fd23c0c9b4 Mon Sep 17 00:00:00 2001 From: GetAway Date: Sat, 20 Oct 2018 14:49:28 +0200 Subject: [PATCH] streaminfo1.cpp: show resolution in TS_MODE if no channel is tuned Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/806b4c78c63d20ebe4f6199bfba1ca6def7226bc Author: GetAway Date: 2018-10-20 (Sat, 20 Oct 2018) --- src/gui/streaminfo1.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/gui/streaminfo1.cpp b/src/gui/streaminfo1.cpp index d696c8346..07b4374b3 100644 --- a/src/gui/streaminfo1.cpp +++ b/src/gui/streaminfo1.cpp @@ -549,11 +549,16 @@ 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()) && CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv)) && !(videoDecoder->getBlank())){ - videoDecoder->getPictureInfo(xres, yres, framerate); - if (yres == 1088) - yres = 1080; - aspectRatio = videoDecoder->getAspectRatio(); + 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) + yres = 1080; + aspectRatio = videoDecoder->getAspectRatio(); } //Video RESOLUTION