mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 18:31:22 +02:00
streaminfo: show techinfo in TS_MODE if channelist is empty
This commit is contained in:
@@ -517,6 +517,8 @@ void CStreamInfo2::paint (int /*mode*/)
|
||||
void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||
{
|
||||
char buf[100];
|
||||
bool has_vpid = false;
|
||||
bool is_webchan = false;
|
||||
int xres = 0, yres = 0, aspectRatio = 0, framerate = -1;
|
||||
// paint labels
|
||||
int spaceoffset = 0,i = 0;
|
||||
@@ -528,7 +530,7 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||
frameBuffer->paintBoxRel (0, ypos, box_width, box_h, COL_MENUCONTENT_PLUS_0);
|
||||
|
||||
CZapitChannel * channel = CZapit::getInstance()->GetCurrentChannel();
|
||||
if(!channel)
|
||||
if(!channel && !mp)
|
||||
return;
|
||||
|
||||
int array[]= {g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_RESOLUTION)),
|
||||
@@ -549,9 +551,14 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||
average_bitrate_offset = spaceoffset;
|
||||
int box_width2 = box_width-(spaceoffset+xpos);
|
||||
|
||||
if (channel)
|
||||
{
|
||||
has_vpid = channel->getVideoPid();
|
||||
is_webchan = IS_WEBCHAN(channel->getChannelID());
|
||||
}
|
||||
int _mode = CNeutrinoApp::getInstance()->getMode();
|
||||
if ((channel->getVideoPid() ||
|
||||
(IS_WEBCHAN(channel->getChannelID()) && _mode == NeutrinoModes::mode_webtv) ||
|
||||
if ((has_vpid ||
|
||||
(is_webchan && _mode == NeutrinoModes::mode_webtv) ||
|
||||
_mode == NeutrinoModes::mode_ts) &&
|
||||
!(videoDecoder->getBlank()))
|
||||
{
|
||||
|
Reference in New Issue
Block a user