mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
streaminfo2.cpp -fix bitrate calc offset and use utf8
Origin commit data
------------------
Commit: 99a7f2ba3b
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2014-05-29 (Thu, 29 May 2014)
Origin message was:
------------------
streaminfo2.cpp -fix bitrate calc offset and use utf8
This commit is contained in:
@@ -449,17 +449,20 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
|
||||
transponder t;
|
||||
CServiceManager::getInstance()->GetTransponder(channel->getTransponderId(), t);
|
||||
|
||||
int array[5]={g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_RESOLUTION)),
|
||||
g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_ARATIO)),
|
||||
g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_FRAMERATE)),
|
||||
g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_AUDIOTYPE)),
|
||||
g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_SCANTS_FREQDATA))};
|
||||
int array[6]={g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_RESOLUTION),true),
|
||||
g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_ARATIO),true),
|
||||
g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_BITRATE),true),
|
||||
g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_FRAMERATE),true),
|
||||
g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_STREAMINFO_AUDIOTYPE),true),
|
||||
g_Font[font_info]->getRenderWidth(g_Locale->getText (LOCALE_SCANTS_FREQDATA),true)};// UTF-8
|
||||
|
||||
for(i=0 ; i<5; i++) {
|
||||
for(i=0 ; i<6; i++) {
|
||||
if(spaceoffset < array[i])
|
||||
spaceoffset = array[i];
|
||||
}
|
||||
average_bitrate_offset = spaceoffset+=4;
|
||||
spaceoffset += g_Font[font_info]->getRenderWidth(" ");
|
||||
|
||||
average_bitrate_offset = spaceoffset;
|
||||
|
||||
if(channel->getVideoPid() && !(videoDecoder->getBlank())){
|
||||
videoDecoder->getPictureInfo(xres, yres, framerate);
|
||||
|
Reference in New Issue
Block a user