summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY3
-rw-r--r--dvbapi.c6
-rw-r--r--tools.c15
4 files changed, 8 insertions, 17 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index d9e75ef8..8d4b3030 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -110,6 +110,7 @@ Stefan Huelswitt <huels@iname.com>
for implementing "Multi Speed Mode"
for implementing backtracing for fast forward/rewind
for implementing the replay mode display
+ for fixing a crash when replaying with DEBUG_OSD=1
Ulrich Röder <roeder@efr-net.de>
for pointing out that there are channels that have a symbol rate higher than
diff --git a/HISTORY b/HISTORY
index 1f84545f..5ce51874 100644
--- a/HISTORY
+++ b/HISTORY
@@ -997,10 +997,11 @@ Video Disk Recorder Revision History
- If a recording has no episode title, the trailing '~' is no longer shown in
the progress display.
-2002-02-15: Version 1.0.0pre1
+2002-02-16: Version 1.0.0pre1
- Added scanning for EPG data for another 4 days on channels that support this
(thanks to Oleg Assovski).
- Removed '#define VFAT 1' from recording.c (was a leftover from testing).
- Fixed the "Low disk space!" message (thanks to Sergei Haller).
- Added the TPID to Hessen-3 in 'channels.conf' (thanks to Sergei Haller).
+- Fixed a crash when replaying with DEBUG_OSD=1 (thanks to Stefan Huelswitt).
diff --git a/dvbapi.c b/dvbapi.c
index 314d91f6..f59b7d74 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -7,7 +7,7 @@
* DVD support initially written by Andreas Schultz <aschultz@warp10.net>
* based on dvdplayer-0.5 by Matjaz Thaler <matjaz.thaler@guest.arnes.si>
*
- * $Id: dvbapi.c 1.147 2002/02/02 13:04:00 kls Exp $
+ * $Id: dvbapi.c 1.148 2002/02/16 12:55:33 kls Exp $
*/
//#define DVDDEBUG 1
@@ -3017,7 +3017,9 @@ void cDvbApi::Text(int x, int y, const char *s, eDvbColor colorFg, eDvbColor col
void cDvbApi::Flush(void)
{
-#ifndef DEBUG_OSD
+#ifdef DEBUG_OSD
+ refresh();
+#else
if (osd)
osd->Flush();
#endif
diff --git a/tools.c b/tools.c
index e95bdf8d..1e60011f 100644
--- a/tools.c
+++ b/tools.c
@@ -4,17 +4,13 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.57 2002/02/05 18:16:52 kls Exp $
+ * $Id: tools.c 1.58 2002/02/16 12:41:44 kls Exp $
*/
#include "tools.h"
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
-#if defined(DEBUG_OSD)
-#include <ncurses.h>
-#undef ERR //XXX ncurses defines this - but this clashes with newer system header files
-#endif
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
@@ -545,9 +541,6 @@ bool cFile::Ready(bool Wait)
bool cFile::AnyFileReady(int FileDes, int TimeoutMs)
{
-#ifdef DEBUG_OSD
- refresh();
-#endif
fd_set set;
FD_ZERO(&set);
for (int i = 0; i < maxFiles; i++) {
@@ -566,9 +559,6 @@ bool cFile::AnyFileReady(int FileDes, int TimeoutMs)
bool cFile::FileReady(int FileDes, int TimeoutMs)
{
-#ifdef DEBUG_OSD
- refresh();
-#endif
fd_set set;
struct timeval timeout;
FD_ZERO(&set);
@@ -582,9 +572,6 @@ bool cFile::FileReady(int FileDes, int TimeoutMs)
bool cFile::FileReadyForWriting(int FileDes, int TimeoutMs)
{
-#ifdef DEBUG_OSD
- refresh();
-#endif
fd_set set;
struct timeval timeout;
FD_ZERO(&set);