mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
tuxtxt: don't try to manipulate input fd
the CRCInput class is used for input anyway, so this does not make any sense.
This commit is contained in:
@@ -1630,7 +1630,7 @@ int tuxtx_subtitle_running(int *pid, int *page, int *running)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
int tuxtx_main(int _rc, int pid, int page, int source)
|
int tuxtx_main(int /*_rc*/, int pid, int page, int source)
|
||||||
{
|
{
|
||||||
char cvs_revision[] = "$Revision: 1.95 $";
|
char cvs_revision[] = "$Revision: 1.95 $";
|
||||||
|
|
||||||
@@ -1663,7 +1663,6 @@ int tuxtx_main(int _rc, int pid, int page, int source)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
rc = _rc;
|
|
||||||
CFrameBuffer *fbp = CFrameBuffer::getInstance();
|
CFrameBuffer *fbp = CFrameBuffer::getInstance();
|
||||||
lfb = (unsigned char *)fbp->getFrameBufferPointer();
|
lfb = (unsigned char *)fbp->getFrameBufferPointer();
|
||||||
lbb = (unsigned char *)fbp->getBackBufferPointer();
|
lbb = (unsigned char *)fbp->getBackBufferPointer();
|
||||||
@@ -1675,8 +1674,6 @@ int tuxtx_main(int _rc, int pid, int page, int source)
|
|||||||
else
|
else
|
||||||
printf("[tuxtxt] using PID %x page %d\n", tuxtxt_cache.vtxtpid, tuxtxt_cache.page);
|
printf("[tuxtxt] using PID %x page %d\n", tuxtxt_cache.vtxtpid, tuxtxt_cache.page);
|
||||||
|
|
||||||
fcntl(rc, F_SETFL, fcntl(rc, F_GETFL) | O_EXCL | O_NONBLOCK);
|
|
||||||
|
|
||||||
#if 0 /* just get it from the framebuffer class */
|
#if 0 /* just get it from the framebuffer class */
|
||||||
/* get fixed screeninfo */
|
/* get fixed screeninfo */
|
||||||
if (ioctl(fb, FBIOGET_FSCREENINFO, &fix_screeninfo) == -1)
|
if (ioctl(fb, FBIOGET_FSCREENINFO, &fix_screeninfo) == -1)
|
||||||
@@ -2246,7 +2243,6 @@ int Init(int source)
|
|||||||
#else
|
#else
|
||||||
tuxtxt_start(tuxtxt_cache.vtxtpid, source);
|
tuxtxt_start(tuxtxt_cache.vtxtpid, source);
|
||||||
#endif
|
#endif
|
||||||
fcntl(rc, F_SETFL, O_NONBLOCK);
|
|
||||||
gethotlist();
|
gethotlist();
|
||||||
|
|
||||||
if(use_gui)
|
if(use_gui)
|
||||||
@@ -2840,7 +2836,7 @@ void Menu_Init(char *menu, int current_pid, int menuitem, int hotindex)
|
|||||||
|
|
||||||
void ConfigMenu(int Init)
|
void ConfigMenu(int Init)
|
||||||
{
|
{
|
||||||
int val, menuitem = M_Start;
|
int menuitem = M_Start;
|
||||||
int current_pid = 0;
|
int current_pid = 0;
|
||||||
int hotindex;
|
int hotindex;
|
||||||
int oldscreenmode, oldtrans = 0;
|
int oldscreenmode, oldtrans = 0;
|
||||||
@@ -2894,10 +2890,6 @@ void ConfigMenu(int Init)
|
|||||||
clearbbcolor = black;
|
clearbbcolor = black;
|
||||||
Menu_Init(menu, current_pid, menuitem, hotindex);
|
Menu_Init(menu, current_pid, menuitem, hotindex);
|
||||||
|
|
||||||
/* set blocking mode */
|
|
||||||
val = fcntl(rc, F_GETFL);
|
|
||||||
fcntl(rc, F_SETFL, val &~ O_NONBLOCK);
|
|
||||||
|
|
||||||
/* loop */
|
/* loop */
|
||||||
do {
|
do {
|
||||||
if (GetRCCode() == 1)
|
if (GetRCCode() == 1)
|
||||||
@@ -3369,7 +3361,6 @@ void ConfigMenu(int Init)
|
|||||||
current_service = current_pid;
|
current_service = current_pid;
|
||||||
// RenderMessage(ShowServiceName);
|
// RenderMessage(ShowServiceName);
|
||||||
|
|
||||||
fcntl(rc, F_SETFL, O_NONBLOCK);
|
|
||||||
RCCode = -1;
|
RCCode = -1;
|
||||||
if (oldscreenmode)
|
if (oldscreenmode)
|
||||||
SwitchScreenMode(oldscreenmode); /* restore divided screen */
|
SwitchScreenMode(oldscreenmode); /* restore divided screen */
|
||||||
@@ -3430,8 +3421,6 @@ void ConfigMenu(int Init)
|
|||||||
|
|
||||||
ClearBB(transp);
|
ClearBB(transp);
|
||||||
CopyBB2FB();
|
CopyBB2FB();
|
||||||
/* reset to nonblocking mode */
|
|
||||||
fcntl(rc, F_SETFL, O_NONBLOCK);
|
|
||||||
tuxtxt_cache.pageupdate = 1;
|
tuxtxt_cache.pageupdate = 1;
|
||||||
RCCode = -1;
|
RCCode = -1;
|
||||||
if (oldscreenmode)
|
if (oldscreenmode)
|
||||||
@@ -3646,7 +3635,7 @@ void ColorKey(int target)
|
|||||||
|
|
||||||
void PageCatching()
|
void PageCatching()
|
||||||
{
|
{
|
||||||
int val, byte;
|
int byte;
|
||||||
int oldzoommode = zoommode;
|
int oldzoommode = zoommode;
|
||||||
|
|
||||||
pagecatching = 1;
|
pagecatching = 1;
|
||||||
@@ -3676,10 +3665,6 @@ void PageCatching()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* set blocking mode */
|
|
||||||
val = fcntl(rc, F_GETFL);
|
|
||||||
fcntl(rc, F_SETFL, val &~ O_NONBLOCK);
|
|
||||||
|
|
||||||
/* loop */
|
/* loop */
|
||||||
do {
|
do {
|
||||||
GetRCCode();
|
GetRCCode();
|
||||||
@@ -3718,7 +3703,6 @@ void PageCatching()
|
|||||||
case RC_HOME:
|
case RC_HOME:
|
||||||
case RC_HELP:
|
case RC_HELP:
|
||||||
case RC_MUTE:
|
case RC_MUTE:
|
||||||
fcntl(rc, F_SETFL, O_NONBLOCK);
|
|
||||||
tuxtxt_cache.pageupdate = 1;
|
tuxtxt_cache.pageupdate = 1;
|
||||||
pagecatching = 0;
|
pagecatching = 0;
|
||||||
RCCode = -1;
|
RCCode = -1;
|
||||||
@@ -3742,9 +3726,6 @@ void PageCatching()
|
|||||||
tuxtxt_cache.subpage = subp;
|
tuxtxt_cache.subpage = subp;
|
||||||
else
|
else
|
||||||
tuxtxt_cache.subpage = 0;
|
tuxtxt_cache.subpage = 0;
|
||||||
|
|
||||||
/* reset to nonblocking mode */
|
|
||||||
fcntl(rc, F_SETFL, O_NONBLOCK);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
@@ -580,7 +580,7 @@ char versioninfo[16];
|
|||||||
int hotlist[10];
|
int hotlist[10];
|
||||||
int maxhotlist;
|
int maxhotlist;
|
||||||
|
|
||||||
int pig, rc, fb, lcd;
|
int pig, fb, lcd;
|
||||||
int sx, ex, sy, ey;
|
int sx, ex, sy, ey;
|
||||||
int PosX, PosY, StartX, StartY;
|
int PosX, PosY, StartX, StartY;
|
||||||
int lastpage;
|
int lastpage;
|
||||||
|
Reference in New Issue
Block a user