mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
streaminfo2: poll more often to avoid demux overflows
additionally a tiny loop optimization
Origin commit data
------------------
Commit: 1c86d5b334
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-03-14 (Wed, 14 Mar 2012)
This commit is contained in:
@@ -142,12 +142,13 @@ int CStreamInfo2::doSignalStrengthLoop ()
|
|||||||
const int delay = 15;
|
const int delay = 15;
|
||||||
int offset = g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_BITRATE));
|
int offset = g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_BITRATE));
|
||||||
int sw = g_Font[font_info]->getRenderWidth ("99999.999");
|
int sw = g_Font[font_info]->getRenderWidth ("99999.999");
|
||||||
|
int dheight = g_Font[font_info]->getHeight ();
|
||||||
maxb = minb = lastb = tmp_rate = 0;
|
maxb = minb = lastb = tmp_rate = 0;
|
||||||
ts_setup ();
|
ts_setup ();
|
||||||
while (1) {
|
while (1) {
|
||||||
neutrino_msg_data_t data;
|
neutrino_msg_data_t data;
|
||||||
|
|
||||||
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd_MS (100);
|
uint64_t timeoutEnd = CRCInput::calcTimeoutEnd_MS(10);
|
||||||
g_RCInput->getMsgAbsoluteTimeout (&msg, &data, &timeoutEnd);
|
g_RCInput->getMsgAbsoluteTimeout (&msg, &data, &timeoutEnd);
|
||||||
|
|
||||||
ssig = CFrontend::getInstance()->getSignalStrength();
|
ssig = CFrontend::getInstance()->getSignalStrength();
|
||||||
@@ -163,7 +164,6 @@ int CStreamInfo2::doSignalStrengthLoop ()
|
|||||||
char currate[150];
|
char currate[150];
|
||||||
if (cnt < 12)
|
if (cnt < 12)
|
||||||
cnt++;
|
cnt++;
|
||||||
int dheight = g_Font[font_info]->getHeight ();
|
|
||||||
int dx1 = x + 10;
|
int dx1 = x + 10;
|
||||||
|
|
||||||
if(delay_counter > delay + 1){
|
if(delay_counter > delay + 1){
|
||||||
|
Reference in New Issue
Block a user