mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
streaminfo: fix possible crash if channel == NULL
Origin commit data
------------------
Commit: 022f269e09
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-10-07 (Sun, 07 Oct 2012)
This commit is contained in:
@@ -93,6 +93,7 @@ CStreamInfo2::CStreamInfo2 ()
|
||||
rate.min_short_average = 0;
|
||||
box_h = 0;
|
||||
box_h2 = 0;
|
||||
yypos = -1;
|
||||
}
|
||||
|
||||
CStreamInfo2::~CStreamInfo2 ()
|
||||
@@ -897,6 +898,8 @@ void CStreamInfo2::showSNR ()
|
||||
int barwidth = 150;
|
||||
int sig, snr;
|
||||
int posx, posy;
|
||||
if (yypos < 0)
|
||||
return; /* nothing to paint. No channel or similar */
|
||||
int sw = g_Font[font_info]->getRenderWidth ("100%");
|
||||
int pw = g_Font[font_info]->getRenderWidth (" SNR");
|
||||
|
||||
|
Reference in New Issue
Block a user