1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00

Fixed slow reaction on SVDRP input

This commit is contained in:
Klaus Schmidinger 2002-10-20 12:49:16 +02:00
parent 302abb7cd1
commit 029dd8aa1c
5 changed files with 11 additions and 6 deletions

View File

@ -31,6 +31,7 @@ Guido Fiala <gfiala@s.netic.de>
(overlay capabilities have been removed again in VDR 0.98, since kvdr version 0.4
now does these things itself)
for making the replay progress display avoid unnecessary code execution
for reporting a problem with slow reaction on SVDRP input
Robert Schneider <Robert.Schneider@de.ibm.com>
for implementing EIT support for displaying the current/next info

View File

@ -1626,3 +1626,4 @@ Video Disk Recorder Revision History
'channels.conf' FILE!
- Timers now internally have a pointer to their channel (this is necessary to
handle gaps in channel numbers, and in preparation for unique channel ids).
- Fixed slow reaction on SVDRP input (thanks to Guido Fiala for reporting this one).

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: interface.c 1.56 2002/09/30 15:32:10 kls Exp $
* $Id: interface.c 1.57 2002/10/20 12:45:35 kls Exp $
*/
#include "interface.h"
@ -58,7 +58,8 @@ eKeys cInterface::GetKey(bool Wait)
{
Flush();
if (SVDRP) {
SVDRP->Process();
if (SVDRP->Process())
Wait = false;
if (!open) {
char *message = SVDRP->GetMessage();
if (message) {

View File

@ -10,7 +10,7 @@
* and interact with the Video Disk Recorder - or write a full featured
* graphical interface that sits on top of an SVDRP connection.
*
* $Id: svdrp.c 1.47 2002/10/20 10:24:20 kls Exp $
* $Id: svdrp.c 1.48 2002/10/20 12:45:03 kls Exp $
*/
#include "svdrp.h"
@ -1012,7 +1012,7 @@ void cSVDRP::Execute(char *Cmd)
else Reply(500, "Command unrecognized: \"%s\"", Cmd);
}
void cSVDRP::Process(void)
bool cSVDRP::Process(void)
{
bool NewConnection = !file.IsOpen();
bool SendGreeting = NewConnection;
@ -1073,7 +1073,9 @@ void cSVDRP::Process(void)
isyslog("timeout on SVDRP connection");
Close(true);
}
return true;
}
return false;
}
char *cSVDRP::GetMessage(void)

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: svdrp.h 1.16 2002/08/25 10:35:25 kls Exp $
* $Id: svdrp.h 1.17 2002/10/20 12:44:42 kls Exp $
*/
#ifndef __SVDRP_H
@ -79,7 +79,7 @@ private:
public:
cSVDRP(int Port);
~cSVDRP();
void Process(void);
bool Process(void);
char *GetMessage(void);
};