Thread: [Commits] : Tuxbox-GIT: apps branch master updated. CVS-Final-222-gf9ae6bc
Tuxbox Sources
Brought to you by:
dbt1
|
From: Thilo G. <tux...@ne...> - 2013-08-08 14:11:05
|
Project "Tuxbox-GIT: apps":
The branch, master has been updated
via f9ae6bced89a6c856507141072ae4e9700ab14c5 (commit)
via 4c11160dbd4ad136e3b6e4d46ca5feab2a805210 (commit)
via 5f12efedb20aca25e63f3483faf97efecb137905 (commit)
via 3093a9f6daedc7cfc0eb2be27c1a02f8e0b27612 (commit)
via 4f2bf6c6a65575ec429065f358fd5cf5bf6831b9 (commit)
via fecd6a6e72121df43a80b42b87edd2608fbe342d (commit)
via 7b9fe4c296c9f56e84e78ce3ebd2d69427110169 (commit)
via 73590e667d2b2e7f196b497b9e2fee032f0d92d8 (commit)
via 1bafbcabc9d67c86acd4178187f8a4e1ad93af07 (commit)
via b834a5a65e6eb5a2752fa3e8954c9c04d6f3db6d (commit)
via 3f8c798027c79fe2bbe191117faef78873377b37 (commit)
via f0b7d2a1bacf38a978b175c6251eafe30c832eb6 (commit)
via 07d6b10a3f055ab2230628878beb61c799cd4ad1 (commit)
via 8327a2a566daf66761b19cb7794e01a64678d005 (commit)
via 694e186ffdb5aa62fbef44d5a7e62702edf5e43d (commit)
via f5e16560ba1d4cea50794e3b3da17ceacf637db3 (commit)
via 9241ea2b6fb01b08a8b59b45268ceca004674a97 (commit)
via bb0321e2c068d9575b099c9fd71b362a1eb743c6 (commit)
via 0146883b8270a54e7f23e0370a12029d95c432d7 (commit)
via cf4e20f99f611e4e3af05c89a13a3ddf833ed4ec (commit)
from 748ac5faf482b3a475f75530f972074d8e724bad (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit f9ae6bced89a6c856507141072ae4e9700ab14c5
Author: Christian Schuett <Gau...@ho...>
Date: Wed Aug 7 20:43:09 2013 +0200
yWeb: add PMT and PCR PID to streaminfo
Signed-off-by: Christian Schuett <Gau...@ho...>
diff --git a/tuxbox/neutrino/daemons/nhttpd/web/Y_StreamInfo.yhtm b/tuxbox/neutrino/daemons/nhttpd/web/Y_StreamInfo.yhtm
index 4c42162..bf13c8b 100644
--- a/tuxbox/neutrino/daemons/nhttpd/web/Y_StreamInfo.yhtm
+++ b/tuxbox/neutrino/daemons/nhttpd/web/Y_StreamInfo.yhtm
@@ -71,6 +71,16 @@
<TD class="set"> <div align="left">{=tsfrequency=} ({=polarisation=})</div></TD>
</TR>
<TR>
+<TD class="set"><B>pmtpid:</B></TD>
+<TD> </TD>
+<TD class="set"> <div align="left">{=pmtpid=}</div></TD>
+</TR>
+<TR>
+<TD class="set"><B>pcrpid:</B></TD>
+<TD> </TD>
+<TD class="set"> <div align="left">{=pcrpid=}</div></TD>
+</TR>
+<TR>
<TD class="set"><B>vpid:</B></TD>
<TD> </TD>
<TD class="set"> <div align="left">{=vpid=}</div></TD>
diff --git a/tuxbox/neutrino/daemons/nhttpd/web/Y_Version.txt b/tuxbox/neutrino/daemons/nhttpd/web/Y_Version.txt
index a5fa020..89a579f 100644
--- a/tuxbox/neutrino/daemons/nhttpd/web/Y_Version.txt
+++ b/tuxbox/neutrino/daemons/nhttpd/web/Y_Version.txt
@@ -1,5 +1,5 @@
-version=2.7.0.27
-date=24.04.2013
+version=2.7.0.28
+date=07.08.2013
type=Release
info=
commit 4c11160dbd4ad136e3b6e4d46ca5feab2a805210
Author: Christian Schuett <Gau...@ho...>
Date: Wed Aug 7 19:51:40 2013 +0200
nhttpd controlapi: add charset iso-8859-1 to response header
Signed-off-by: Christian Schuett <Gau...@ho...>
diff --git a/tuxbox/neutrino/daemons/nhttpd/tuxboxapi/controlapi.cpp b/tuxbox/neutrino/daemons/nhttpd/tuxboxapi/controlapi.cpp
index d783e48..2b70340 100644
--- a/tuxbox/neutrino/daemons/nhttpd/tuxboxapi/controlapi.cpp
+++ b/tuxbox/neutrino/daemons/nhttpd/tuxboxapi/controlapi.cpp
@@ -225,11 +225,11 @@ void CControlAPI::Execute(CyhookHandler *hh)
;
else if(std::string(yCgiCallList[index].mime_type) == "+xml") // Parameter xml?
if (hh->ParamList["xml"] != "")
- hh->SetHeader(HTTP_OK, "text/xml");
+ hh->SetHeader(HTTP_OK, "text/xml; charset=iso-8859-1");
else
- hh->SetHeader(HTTP_OK, "text/html");
+ hh->SetHeader(HTTP_OK, "text/html; charset=iso-8859-1");
else
- hh->SetHeader(HTTP_OK, yCgiCallList[index].mime_type);
+ hh->SetHeader(HTTP_OK, std::string(yCgiCallList[index].mime_type) + "; charset=iso-8859-1");
// response
hh->status = HANDLED_READY;
if (hh->Method == M_HEAD) // HEAD or function call
@@ -348,11 +348,11 @@ void CControlAPI::ExecCGI(CyhookHandler *hh)
std::string script, result;
// override standard header
if (hh->ParamList.size() > 1 && hh->ParamList["xml"].empty())
- hh->SetHeader(HTTP_OK, "text/html");
+ hh->SetHeader(HTTP_OK, "text/html; charset=iso-8859-1");
else if (hh->ParamList.size() > 1 && !hh->ParamList["xml"].empty())
- hh->SetHeader(HTTP_OK, "text/xml");
+ hh->SetHeader(HTTP_OK, "text/xml; charset=iso-8859-1");
else
- hh->SetHeader(HTTP_OK, "text/plain");
+ hh->SetHeader(HTTP_OK, "text/plain; charset=iso-8859-1");
if (!hh->ParamList.empty())
{
script = hh->ParamList["1"];
@@ -1068,7 +1068,7 @@ void CControlAPI::EpgCGI(CyhookHandler *hh)
if (hh->ParamList.empty())
{
- hh->SetHeader(HTTP_OK, "text/plain");
+ hh->SetHeader(HTTP_OK, "text/plain; charset=iso-8859-1");
CZapitClient::BouquetChannelList *channellist = NeutrinoAPI->GetChannelList(CZapitClient::MODE_CURRENT);
CZapitClient::BouquetChannelList::iterator channel = channellist->begin();
for(; channel != channellist->end();channel++)
@@ -1084,7 +1084,7 @@ void CControlAPI::EpgCGI(CyhookHandler *hh)
}
else if (hh->ParamList["xml"].empty())
{
- hh->SetHeader(HTTP_OK, "text/plain");
+ hh->SetHeader(HTTP_OK, "text/plain; charset=iso-8859-1");
if (hh->ParamList["1"] == "ext")
{
CZapitClient::BouquetChannelList *channellist = NeutrinoAPI->GetChannelList(CZapitClient::MODE_CURRENT);
@@ -1169,7 +1169,7 @@ void CControlAPI::EpgCGI(CyhookHandler *hh)
// stoptime : show only items until stoptime reached
else if (!(hh->ParamList["xml"].empty()))
{
- hh->SetHeader(HTTP_OK, "text/xml");
+ hh->SetHeader(HTTP_OK, "text/xml; charset=iso-8859-1");
t_channel_id channel_id = (t_channel_id)-1;
@@ -2273,7 +2273,7 @@ void CControlAPI::build_live_url(CyhookHandler *hh)
}
else
{
- hh->SetHeader(HTTP_OK, "text/html");
+ hh->SetHeader(HTTP_OK, "text/html; charset=iso-8859-1");
hh->Write(url);
}
}
commit 5f12efedb20aca25e63f3483faf97efecb137905
Author: Christian Schuett <Gau...@ho...>
Date: Wed Aug 7 17:41:34 2013 +0200
Neutrino: add PCR PID handling to direct recording and live streaming
based on patch by Jacek Jendrzej <cra...@go...> in Coolstream Git
Signed-off-by: Christian Schuett <Gau...@ho...>
diff --git a/tuxbox/neutrino/daemons/nhttpd/tuxboxapi/controlapi.cpp b/tuxbox/neutrino/daemons/nhttpd/tuxboxapi/controlapi.cpp
index 3376076..d783e48 100644
--- a/tuxbox/neutrino/daemons/nhttpd/tuxboxapi/controlapi.cpp
+++ b/tuxbox/neutrino/daemons/nhttpd/tuxboxapi/controlapi.cpp
@@ -1631,7 +1631,8 @@ void CControlAPI::SendAllCurrentVAPid(CyhookHandler *hh)
hh->printf("%05u vtxt\n",pids.PIDs.vtxtpid);
if (pids.PIDs.pmtpid)
hh->printf("%05u pmt\n",pids.PIDs.pmtpid);
-
+ if (pids.PIDs.pcrpid)
+ hh->printf("%05u pcr\n",pids.PIDs.pcrpid);
}
//-----------------------------------------------------------------------------
@@ -1757,9 +1758,17 @@ void CControlAPI::YWeb_SendVideoStreamingPids(CyhookHandler *hh, int apid_no)
if(!pids.APIDs.empty())
apid = pids.APIDs[apid_idx].pid;
if(hh->ParamList["no_commas"] != "")
+ {
hh->printf("0x%04x 0x%04x 0x%04x",pids.PIDs.pmtpid,pids.PIDs.vpid,apid);
+ if (pids.PIDs.pcrpid != pids.PIDs.vpid)
+ hh->printf(" 0x%04x", pids.PIDs.pcrpid);
+ }
else
+ {
hh->printf("0x%04x,0x%04x,0x%04x",pids.PIDs.pmtpid,pids.PIDs.vpid,apid);
+ if (pids.PIDs.pcrpid != pids.PIDs.vpid)
+ hh->printf(",0x%04x", pids.PIDs.pcrpid);
+ }
}
//-----------------------------------------------------------------------------
@@ -2232,6 +2241,8 @@ void CControlAPI::build_live_url(CyhookHandler *hh)
if(!pids.APIDs.empty())
apid = pids.APIDs[apid_idx].pid;
xpids = string_printf("0x%04x,0x%04x,0x%04x",pids.PIDs.pmtpid,pids.PIDs.vpid,apid);
+ if (pids.PIDs.pcrpid != pids.PIDs.vpid)
+ xpids += string_printf(",0x%04x", pids.PIDs.pcrpid);
}
else if ( mode == CZapitClient::MODE_RADIO)
{
diff --git a/tuxbox/neutrino/daemons/nhttpd/tuxboxapi/neutrinoyparser.cpp b/tuxbox/neutrino/daemons/nhttpd/tuxboxapi/neutrinoyparser.cpp
index c8147c3..6e39a20 100644
--- a/tuxbox/neutrino/daemons/nhttpd/tuxboxapi/neutrinoyparser.cpp
+++ b/tuxbox/neutrino/daemons/nhttpd/tuxboxapi/neutrinoyparser.cpp
@@ -478,6 +478,7 @@ std::string CNeutrinoYParser::func_get_mode(CyhookHandler */*hh*/, std::string
//-------------------------------------------------------------------------
std::string CNeutrinoYParser::func_get_video_pids(CyhookHandler */*hh*/, std::string para)
{
+ std::string yresult;
CZapitClient::responseGetPIDs pids;
int apid=0,apid_no=0,apid_idx=0;
pids.PIDs.vpid=0;
@@ -490,7 +491,10 @@ std::string CNeutrinoYParser::func_get_video_pids(CyhookHandler */*hh*/, std::s
apid_idx=apid_no;
if(!pids.APIDs.empty())
apid = pids.APIDs[apid_idx].pid;
- return string_printf("0x%04x,0x%04x,0x%04x",pids.PIDs.pmtpid,pids.PIDs.vpid,apid);
+ yresult = string_printf("0x%04x,0x%04x,0x%04x", pids.PIDs.pmtpid, pids.PIDs.vpid, apid);
+ if (pids.PIDs.pcrpid != pids.PIDs.vpid)
+ yresult += string_printf(",0x%04x", pids.PIDs.pcrpid);
+ return yresult;
}
//-------------------------------------------------------------------------
// y-func : get_radio_pids (returns: 0x0000)
@@ -671,6 +675,7 @@ std::string CNeutrinoYParser::func_get_current_stream_info(CyhookHandler *hh, s
hh->ParamList["apid"] = itoh(serviceinfo.apid);
hh->ParamList["vtxtpid"] = (serviceinfo.vtxtpid != 0)?itoh(serviceinfo.vtxtpid):"nicht verfügbar";
hh->ParamList["pmtpid"] = (serviceinfo.pmtpid != 0)?itoh(serviceinfo.pmtpid):"nicht verfügbar";
+ hh->ParamList["pcrpid"] = (serviceinfo.pcrpid != 0)?itoh(serviceinfo.pcrpid):"nicht verfügbar";
if (serviceinfo.polarisation != 2) /* only satellite has polarisation */
{
hh->ParamList["tsfrequency"] = string_printf("%d.%03d MHz", serviceinfo.tsfrequency / 1000, serviceinfo.tsfrequency % 1000);
diff --git a/tuxbox/neutrino/src/driver/genpsi.c b/tuxbox/neutrino/src/driver/genpsi.c
index c0166b7..475eade 100644
--- a/tuxbox/neutrino/src/driver/genpsi.c
+++ b/tuxbox/neutrino/src/driver/genpsi.c
@@ -37,13 +37,10 @@ $Id: genpsi.c,v 1.2 2006/01/16 12:45:54 sat_man Exp $
#define ES_TYPE_MPA 0x03
#define ES_TYPE_AC3 0x81
-#define EN_TYPE_VIDEO 0x00
-#define EN_TYPE_AUDIO 0x01
-#define EN_TYPE_TELTEX 0x02
-#define EN_TYPE_PCR 0x03
typedef struct
{
short nba;
+ uint16_t pcrpid;
uint16_t vpid;
uint16_t apid[10];
short isAC3[10];
@@ -55,6 +52,7 @@ void transfer_pids(uint16_t pid,uint16_t pidart,short isAC3)
switch(pidart)
{
case EN_TYPE_VIDEO:
+ avPids.pcrpid=pid;
avPids.vpid=pid;
break;
case EN_TYPE_AUDIO:
@@ -64,7 +62,9 @@ void transfer_pids(uint16_t pid,uint16_t pidart,short isAC3)
break;
case EN_TYPE_TELTEX:
break;
-
+ case EN_TYPE_PCR:
+ avPids.pcrpid=pid;
+ break;
default:
break;
}
@@ -157,8 +157,8 @@ int genpsi(int fd2)
//-- write row with desc. for pcr stream (eq. video) --
pkt[ofs] = EN_TYPE_PCR;
pkt[ofs+1] = 0x02;
- pkt[ofs+2] = (avPids.vpid>>8);
- pkt[ofs+3] = (avPids.vpid & 0xFF);
+ pkt[ofs+2] = (avPids.pcrpid>>8);
+ pkt[ofs+3] = (avPids.pcrpid & 0xFF);
//-- calculate CRC --
calc_crc32psi(&pkt[data_len], &pkt[OFS_HDR_2], data_len-OFS_HDR_2 );
@@ -180,8 +180,8 @@ int genpsi(int fd2)
pkt[OFS_HDR_2+2] = (patch_len & 0xFF);
//-- patch pcr PID --
ofs = OFS_PMT_DATA;
- pkt[ofs] |= (avPids.vpid>>8);
- pkt[ofs+1] = (avPids.vpid & 0xFF);
+ pkt[ofs] |= (avPids.pcrpid>>8);
+ pkt[ofs+1] = (avPids.pcrpid & 0xFF);
//-- write row with desc. for ES video stream --
ofs = OFS_STREAM_TAB;
pkt[ofs] = ES_TYPE_MPEG12;
@@ -205,6 +205,7 @@ int genpsi(int fd2)
//-- write TS packet --
bytes += write(fd2, pkt, SIZE_TS_PKT);
//-- finish --
+ avPids.pcrpid=0;
avPids.vpid=0;
avPids.nba=0;
return 1;
diff --git a/tuxbox/neutrino/src/driver/genpsi.h b/tuxbox/neutrino/src/driver/genpsi.h
index 8085894..91bf58e 100644
--- a/tuxbox/neutrino/src/driver/genpsi.h
+++ b/tuxbox/neutrino/src/driver/genpsi.h
@@ -26,6 +26,11 @@ $Id: genpsi.h,v 1.1 2005/08/15 14:47:52 metallica Exp $
#define __genpsi_h__
#include <inttypes.h>
+#define EN_TYPE_VIDEO 0x00
+#define EN_TYPE_AUDIO 0x01
+#define EN_TYPE_TELTEX 0x02
+#define EN_TYPE_PCR 0x03
+
int genpsi(int fd2);
void transfer_pids(uint16_t pid,uint16_t pidart,short isAC3);
diff --git a/tuxbox/neutrino/src/driver/vcrcontrol.cpp b/tuxbox/neutrino/src/driver/vcrcontrol.cpp
index 341d88c..0ef635e 100644
--- a/tuxbox/neutrino/src/driver/vcrcontrol.cpp
+++ b/tuxbox/neutrino/src/driver/vcrcontrol.cpp
@@ -761,7 +761,15 @@ bool CVCRControl::CFileDevice::Record(const t_channel_id channel_id, int mode, c
pids[0] = si.vpid;
numpids = 1;
if(sptsmode)
- transfer_pids(si.vpid,0x00,0);
+ transfer_pids(si.vpid, EN_TYPE_VIDEO, 0);
+
+ if (si.pcrpid != si.vpid)
+ {
+ pids[1] = si.pcrpid;
+ numpids = 2;
+ if(sptsmode)
+ transfer_pids(si.pcrpid, EN_TYPE_PCR, 0);
+ }
}
else
{
@@ -774,7 +782,7 @@ bool CVCRControl::CFileDevice::Record(const t_channel_id channel_id, int mode, c
{
pids[numpids++] = it->apid;
if(sptsmode)
- transfer_pids(it->apid,0x01, it->ac3 ? 1 : 0);
+ transfer_pids(it->apid, EN_TYPE_AUDIO, it->ac3 ? 1 : 0);
}
if(!apid_list.empty())
g_Zapit->setAudioChannel(apid_list.begin()->index);
commit 3093a9f6daedc7cfc0eb2be27c1a02f8e0b27612
Author: Christian Schuett <Gau...@ho...>
Date: Tue Aug 6 17:40:54 2013 +0200
Neutrino: fix calculation of volume bar position
Signed-off-by: Christian Schuett <Gau...@ho...>
diff --git a/tuxbox/neutrino/src/neutrino.cpp b/tuxbox/neutrino/src/neutrino.cpp
index b46bc31..13321fa 100644
--- a/tuxbox/neutrino/src/neutrino.cpp
+++ b/tuxbox/neutrino/src/neutrino.cpp
@@ -3550,41 +3550,41 @@ void CNeutrinoApp::setVolume(const neutrino_msg_t key, const bool bDoPaint)
const int iw = 24; // icon width
const int dx = w + b*2 + iw + nw + r; // width + 2*border + icon + numbers + round
const int bwx = 20; // border width x from left and right
- const int bwtop = 47; // border width y from top
- const int bwbot = 47; // border width y from bottom
+ const int bwtop = 20; // border width y from top
+ const int bwbot = 20; // border width y from bottom
int x, y;
int a_step = atoi(g_settings.audio_step);
volumeBarIsVisible = ((g_settings.volumebar_disp_pos != VOLUMEBAR_DISP_POS_OFF) ? true : false);
if( g_settings.volumebar_disp_pos == VOLUMEBAR_DISP_POS_TOP_RIGHT )
{
- x = g_settings.screen_EndX - dx - bwx - 40;
- y = g_settings.screen_StartY + dy + bwtop;
+ x = g_settings.screen_EndX - dx - bwx;
+ y = g_settings.screen_StartY + bwtop;
}
else if( g_settings.volumebar_disp_pos == VOLUMEBAR_DISP_POS_TOP_LEFT )
{
x = g_settings.screen_StartX + bwx;
- y = g_settings.screen_StartY + dy + bwtop;
+ y = g_settings.screen_StartY + bwtop;
}
else if( g_settings.volumebar_disp_pos == VOLUMEBAR_DISP_POS_BOTTOM_LEFT )
{
x = g_settings.screen_StartX + bwx;
- y = g_settings.screen_EndY - bwbot;
+ y = g_settings.screen_EndY - dy - bwbot;
}
else if( g_settings.volumebar_disp_pos == VOLUMEBAR_DISP_POS_BOTTOM_RIGHT )
{
x = g_settings.screen_EndX - dx - bwx;
- y = g_settings.screen_EndY- bwbot;
+ y = g_settings.screen_EndY - dy - bwbot;
}
else if( g_settings.volumebar_disp_pos == VOLUMEBAR_DISP_POS_HIGHER_CENTER )
{
x = (((g_settings.screen_EndX- g_settings.screen_StartX)- dx) / 2) + g_settings.screen_StartX;
- y = g_settings.screen_EndY - bwbot-140;
+ y = g_settings.screen_EndY - dy - bwbot - 140;
}
else /* if (g_settings.volumebar_disp_pos == VOLUMEBAR_DISP_POS_DEFAULT_CENTER) */
{
x = (((g_settings.screen_EndX- g_settings.screen_StartX)- dx) / 2) + g_settings.screen_StartX;
- y = g_settings.screen_EndY - bwbot;
+ y = g_settings.screen_EndY - dy - bwbot;
}
fb_pixel_t * pixbuf = NULL;
commit 4f2bf6c6a65575ec429065f358fd5cf5bf6831b9
Author: Christian Schuett <Gau...@ho...>
Date: Sun Aug 4 22:06:12 2013 +0200
Neutrino streaminfo: show PCR PID
Signed-off-by: Christian Schuett <Gau...@ho...>
diff --git a/tuxbox/neutrino/src/gui/streaminfo2.cpp b/tuxbox/neutrino/src/gui/streaminfo2.cpp
index 395a8b2..8e4d619 100644
--- a/tuxbox/neutrino/src/gui/streaminfo2.cpp
+++ b/tuxbox/neutrino/src/gui/streaminfo2.cpp
@@ -64,8 +64,8 @@ CStreamInfo2::CStreamInfo2()
iheight = g_Font[font_info]->getHeight();
sheight = g_Font[font_small]->getHeight();
- width = w_max(SCREEN_X, 10);
- height = h_max(SCREEN_Y, 10);
+ width = w_max(SCREEN_X, 20);
+ height = h_max(SCREEN_Y, 20);
x = getScreenStartX(width); //mainwindow position
y = getScreenStartY(height);
@@ -475,9 +475,9 @@ void CStreamInfo2::paint(int/*mode*/)
}
// Info Output
- paint_techinfo ( xpos, ypos );
+ paint_techinfo(xpos, ypos);
- paint_signal_fe_box ( pigboxes_x,(ypos + 175), 240, 190);
+ paint_signal_fe_box(pigboxes_x, ypos + 185, 240, 190);
// buttons
int button_y = ypos+background_h-8;
@@ -496,7 +496,7 @@ void CStreamInfo2::paint(int/*mode*/)
frameBuffer->paintBoxRel(0, 0, max_width, max_height, COL_MENUCONTENT_PLUS_0);
// -- paint large signal graph
- paint_signal_fe_box ( x, y, width, height - 100);
+ paint_signal_fe_box(x, y, width, height - 100);
// -- buttons
int button_y = y + height;
@@ -669,6 +669,12 @@ void CStreamInfo2::paint_techinfo(int xpos, int ypos)
g_Font[font_small]->RenderString(xpos, ypos, width-10, "PMTpid:", COL_MENUCONTENT, 0, true); // UTF-8
g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, width-10, buf, COL_MENUCONTENT, 0, true); // UTF-8
+ //pcrpid
+ ypos+= sheight;
+ sprintf((char*) buf, "0x%04x", si.pcrpid);
+ g_Font[font_small]->RenderString(xpos, ypos, width-10, "PCRpid:", COL_MENUCONTENT, 0, true); // UTF-8
+ g_Font[font_small]->RenderString(xpos+spaceoffset, ypos, width-10, buf, COL_MENUCONTENT, 0, true); // UTF-8
+
//vpid
ypos+= sheight;
if ( g_RemoteControl->current_PIDs.PIDs.vpid > 0 ){
commit fecd6a6e72121df43a80b42b87edd2608fbe342d
Author: Christian Schuett <Gau...@ho...>
Date: Sun Aug 4 19:13:57 2013 +0200
Neutrino infoviewer: fix spelling of an enum
Signed-off-by: Christian Schuett <Gau...@ho...>
diff --git a/tuxbox/neutrino/src/gui/infoviewer.cpp b/tuxbox/neutrino/src/gui/infoviewer.cpp
index dfb356a..6db652d 100644
--- a/tuxbox/neutrino/src/gui/infoviewer.cpp
+++ b/tuxbox/neutrino/src/gui/infoviewer.cpp
@@ -537,7 +537,7 @@ void CInfoViewer::showTitle(const int ChanNum, const std::string & Channel, cons
int ChannelLogoMode = showChannelLogo(channel_id); // get logo mode, paint channel logo if adjusted
- if (ChannelLogoMode != LOGO_AS_CHANNELLUM) // no logo in numberbox
+ if (ChannelLogoMode != LOGO_AS_CHANNELNUM) // no logo in numberbox
{
// show channel number in numberbox
g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_NUMBER]->RenderString(BoxStartX + ((ChanWidth - g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_NUMBER]->getRenderWidth(strChanNum))>>1), ChanNumYPos, ChanWidth, strChanNum, col_NumBoxText);
@@ -1908,7 +1908,6 @@ int CInfoViewer::showChannelLogo( const t_channel_id logo_channel_id )
if (g_settings.infobar_show_channellogo != NO_LOGO)
{
-
// check if logo is available
if (access(strAbsIconChIDPath.c_str(), 0) != -1)
{
@@ -1932,7 +1931,7 @@ int CInfoViewer::showChannelLogo( const t_channel_id logo_channel_id )
}
else
{
- if (g_settings.infobar_show_channellogo == LOGO_AS_CHANNELLUM)
+ if (g_settings.infobar_show_channellogo == LOGO_AS_CHANNELNUM)
{
// calculate mid of numberbox
int satNameHeight = 0; // no sat name display now, picon doesnt need to set an offset for y
@@ -1942,7 +1941,7 @@ int CInfoViewer::showChannelLogo( const t_channel_id logo_channel_id )
// check logo dimensions
if ((logo_w > ChanWidth) || (logo_h > ChanHeight))
{
- printf(strErrText.c_str(), ChanWidth, ChanHeight, logo_w, logo_h, LOGO_AS_CHANNELLUM);
+ printf(strErrText.c_str(), ChanWidth, ChanHeight, logo_w, logo_h, LOGO_AS_CHANNELNUM);
}
else
{
@@ -1951,7 +1950,7 @@ int CInfoViewer::showChannelLogo( const t_channel_id logo_channel_id )
// get position of channel logo, must be centered in number box
logo_x = x_mid - logo_w/2;
logo_y = y_mid - logo_h/2;
- res = LOGO_AS_CHANNELLUM;
+ res = LOGO_AS_CHANNELNUM;
}
}
else if (g_settings.infobar_show_channellogo == LOGO_AS_CHANNELNAME)
diff --git a/tuxbox/neutrino/src/gui/infoviewer.h b/tuxbox/neutrino/src/gui/infoviewer.h
index 00338a5..b959967 100644
--- a/tuxbox/neutrino/src/gui/infoviewer.h
+++ b/tuxbox/neutrino/src/gui/infoviewer.h
@@ -166,7 +166,7 @@ class CInfoViewer
enum
{
NO_LOGO,
- LOGO_AS_CHANNELLUM,
+ LOGO_AS_CHANNELNUM,
LOGO_AS_CHANNELNAME,
LOGO_BESIDE_CHANNELNAME
};
diff --git a/tuxbox/neutrino/src/gui/osd_setup.cpp b/tuxbox/neutrino/src/gui/osd_setup.cpp
index dd88ed4..e8d6a6e 100644
--- a/tuxbox/neutrino/src/gui/osd_setup.cpp
+++ b/tuxbox/neutrino/src/gui/osd_setup.cpp
@@ -467,7 +467,7 @@ const CMenuOptionChooser::keyval INFOBAR_EPG_SHOW_OPTIONS[INFOBAR_EPG_SHOW_OPTI
const CMenuOptionChooser::keyval INFOBAR_CHANNELLOGO_SHOW_OPTIONS[INFOBAR_CHANNELLOGO_SHOW_OPTIONS_COUNT]=
{
{ CInfoViewer::NO_LOGO , LOCALE_INFOVIEWER_CHANNELLOGO_OFF },
- { CInfoViewer::LOGO_AS_CHANNELLUM , LOCALE_INFOVIEWER_CHANNELLOGO_SHOW_IN_NUMBERBOX },
+ { CInfoViewer::LOGO_AS_CHANNELNUM , LOCALE_INFOVIEWER_CHANNELLOGO_SHOW_IN_NUMBERBOX },
{ CInfoViewer::LOGO_AS_CHANNELNAME , LOCALE_INFOVIEWER_CHANNELLOGO_SHOW_AS_CHANNELNAME },
{ CInfoViewer::LOGO_BESIDE_CHANNELNAME, LOCALE_INFOVIEWER_CHANNELLOGO_SHOW_BESIDE_CHANNELNAME }
};
commit 7b9fe4c296c9f56e84e78ce3ebd2d69427110169
Author: Christian Schuett <Gau...@ho...>
Date: Sat Aug 3 19:53:12 2013 +0200
Neutrino infoviewer: use enums instead of numbers
Signed-off-by: Christian Schuett <Gau...@ho...>
diff --git a/tuxbox/neutrino/src/gui/infoviewer.cpp b/tuxbox/neutrino/src/gui/infoviewer.cpp
index 32381e7..dfb356a 100644
--- a/tuxbox/neutrino/src/gui/infoviewer.cpp
+++ b/tuxbox/neutrino/src/gui/infoviewer.cpp
@@ -537,9 +537,9 @@ void CInfoViewer::showTitle(const int ChanNum, const std::string & Channel, cons
int ChannelLogoMode = showChannelLogo(channel_id); // get logo mode, paint channel logo if adjusted
- if (ChannelLogoMode != 1) // no logo in numberbox
+ if (ChannelLogoMode != LOGO_AS_CHANNELLUM) // no logo in numberbox
{
- // show logo in numberbox
+ // show channel number in numberbox
g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_NUMBER]->RenderString(BoxStartX + ((ChanWidth - g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_NUMBER]->getRenderWidth(strChanNum))>>1), ChanNumYPos, ChanWidth, strChanNum, col_NumBoxText);
}
@@ -1888,14 +1888,6 @@ void CInfoViewer::Set_CA_Status(int Status)
}
int CInfoViewer::showChannelLogo( const t_channel_id logo_channel_id )
-/* ****************************************************************************
-returns mode of painted channel logo,
-0 = no logo painted
-1 = in number box
-2 = in place of channel name
-3 = beside channel name
-*******************************************************************************
-*/
{
char strChanId[16];
sprintf((char*) strChanId, "%llx", logo_channel_id);
@@ -1909,10 +1901,10 @@ returns mode of painted channel logo,
int x_mid, y_mid, logo_w = 0, logo_h = 0;
int logo_x=0, logo_y=0;
- int res = 0;
+ int res = NO_LOGO;
int start_x = ChanNameX, chan_w = BoxEndX- (start_x+ 20)- time_width- 15;
- bool logo_available;
+ bool logo_available = false;
if (g_settings.infobar_show_channellogo != NO_LOGO)
{
@@ -1928,8 +1920,6 @@ returns mode of painted channel logo,
strAbsIconPath = strAbsIconChNamePath; // strLogoName;
logo_available = true;
}
- else
- logo_available = false;
if (logo_available)
{
@@ -1939,9 +1929,8 @@ returns mode of painted channel logo,
if ((logo_w == 0) || (logo_h == 0)) // corrupt logo size?
{
printf("[infoviewer] channel logo: \n -> %s (%s) has no size\n -> please check logo file!\n",strAbsIconPath.c_str(), ChannelName.c_str());
- return 0;
}
-
+ else
{
if (g_settings.infobar_show_channellogo == LOGO_AS_CHANNELLUM)
{
@@ -1953,8 +1942,7 @@ returns mode of painted channel logo,
// check logo dimensions
if ((logo_w > ChanWidth) || (logo_h > ChanHeight))
{
- printf(strErrText.c_str(),ChanWidth, ChanHeight, logo_w, logo_h, g_settings.infobar_show_channellogo);
- res = 0;
+ printf(strErrText.c_str(), ChanWidth, ChanHeight, logo_w, logo_h, LOGO_AS_CHANNELLUM);
}
else
{
@@ -1963,7 +1951,7 @@ returns mode of painted channel logo,
// get position of channel logo, must be centered in number box
logo_x = x_mid - logo_w/2;
logo_y = y_mid - logo_h/2;
- res = 1;
+ res = LOGO_AS_CHANNELLUM;
}
}
else if (g_settings.infobar_show_channellogo == LOGO_AS_CHANNELNAME)
@@ -1971,8 +1959,7 @@ returns mode of painted channel logo,
// check logo dimensions
if ((logo_w > chan_w) || (logo_h > ChanHeight))
{
- printf(strErrText.c_str(), chan_w, ChanHeight, logo_w, logo_h, g_settings.infobar_show_channellogo);
- res = 0;
+ printf(strErrText.c_str(), chan_w, ChanHeight, logo_w, logo_h, LOGO_AS_CHANNELNAME);
}
else
{
@@ -1982,7 +1969,7 @@ returns mode of painted channel logo,
y_mid = (ChanNameY+time_height) - time_height/2;
logo_x = start_x+10;
logo_y = y_mid - logo_h/2;
- res = 2;
+ res = LOGO_AS_CHANNELNAME;
}
}
else if (g_settings.infobar_show_channellogo == LOGO_BESIDE_CHANNELNAME)
@@ -1991,8 +1978,7 @@ returns mode of painted channel logo,
int Logo_max_width = chan_w - logo_w - 10;
if ((logo_w > Logo_max_width) || (logo_h > ChanHeight))
{
- printf(strErrText.c_str(), Logo_max_width, ChanHeight, logo_w, logo_h, g_settings.infobar_show_channellogo);
- res = 0;
+ printf(strErrText.c_str(), Logo_max_width, ChanHeight, logo_w, logo_h, LOGO_BESIDE_CHANNELNAME);
}
else
{
@@ -2003,16 +1989,12 @@ returns mode of painted channel logo,
// set channel name x pos
ChanNameX = start_x + logo_w + 10;
- res = 3;
+ res = LOGO_BESIDE_CHANNELNAME;
}
}
- else
- {
- res = 0;
- }
// paint logo background (shaded/framed)
- if ((g_settings.infobar_channellogo_background != NO_BACKGROUND) && (res != 0))
+ if ((g_settings.infobar_channellogo_background != NO_BACKGROUND) && (res != NO_LOGO))
{
int frame_w = 2, logo_bg_x=0, logo_bg_y=0, logo_bg_w=0, logo_bg_h=0;
@@ -2036,9 +2018,10 @@ returns mode of painted channel logo,
}
// paint the logo
- if (res !=0) {
+ if (res != NO_LOGO)
+ {
if (!frameBuffer->paintIcon(strAbsIconPath, logo_x, logo_y))
- return 0; // paint logo was failed
+ res = NO_LOGO; // paint logo was failed
}
}
}
commit 73590e667d2b2e7f196b497b9e2fee032f0d92d8
Author: Christian Schuett <Gau...@ho...>
Date: Sat Aug 3 18:13:52 2013 +0200
Neutrino: fix one more delete[] vs delete error
Signed-off-by: Christian Schuett <Gau...@ho...>
diff --git a/tuxbox/neutrino/src/neutrino.cpp b/tuxbox/neutrino/src/neutrino.cpp
index d5ef65a..b46bc31 100644
--- a/tuxbox/neutrino/src/neutrino.cpp
+++ b/tuxbox/neutrino/src/neutrino.cpp
@@ -2660,7 +2660,7 @@ int CNeutrinoApp::handleMsg(const neutrino_msg_t m, neutrino_msg_data_t data)
if (msg == CRCInput::RC_ignore)
{
- delete (unsigned char*) data;
+ delete [] (unsigned char*) data;
return messages_return::handled;
}
commit 1bafbcabc9d67c86acd4178187f8a4e1ad93af07
Author: [CST] Focus <foc...@gm...>
Date: Tue Jul 30 21:01:19 2013 +0200
Neutrino english.locale: little changes/corrections
Signed-off-by: Christian Schuett <Gau...@ho...>
diff --git a/tuxbox/neutrino/data/locale/english.locale b/tuxbox/neutrino/data/locale/english.locale
index e80f401..b849e12 100644
--- a/tuxbox/neutrino/data/locale/english.locale
+++ b/tuxbox/neutrino/data/locale/english.locale
@@ -1086,7 +1086,7 @@ osdsettings.show_mute_icon Mute-Icon on volume 0
osdsettings.themeselect Select Theme
osdsettings.volumebar_disp_pos Volumebar
parentallock.changepin change PIN code
-parentallock.changepin_hint1 Enter your new youth protection pin code here!
+parentallock.changepin_hint1 Enter your new parental lock pin code here!
parentallock.changetolocked on locked bouquets
parentallock.head Enter PIN code
parentallock.lockage lock program
@@ -1097,7 +1097,7 @@ parentallock.lockedchannel Locked sender...
parentallock.lockedprogram Locked program (from %d years up)
parentallock.never never
parentallock.onsignal on broadcasted lock
-parentallock.parentallock Youth protection
+parentallock.parentallock Parental lock
parentallock.prompt prompt for PIN
personalize.access Access options
personalize.apply_settings Apply changes?
@@ -1111,7 +1111,7 @@ personalize.help_line3 can be set to visible, not visible, activate, deactivate
personalize.help_line4 or PIN-protected.
personalize.help_line5 The access to personalization can be protected
personalize.help_line6 with PIN. The PIN is identical for all protected menus
-personalize.help_line7 (not for youth protection).
+personalize.help_line7 (not for parental lock).
personalize.help_line8 Default PIN is: 0000
personalize.menuconfiguration Menu Configuration
personalize.menudisabledhint The requested menu is currently disabled
@@ -1211,7 +1211,7 @@ recordingmenu.server_ip Recording Server IP
recordingmenu.server_mac MAC Address
recordingmenu.server_port Recording Server Port
recordingmenu.server_wakeup Recording Server WOL
-recordingmenu.setupnow activate changes
+recordingmenu.setupnow Activate changes
recordingmenu.s...
[truncated message content] |