diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-02-16 12:55:33 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-02-16 12:55:33 +0100 |
commit | 3ecbdd489e19a1844843fc1e5e60a689908ffc02 (patch) | |
tree | 20fe31906255dcb9150b01ca1d636d2f179e469c | |
parent | 4c018b1c3603a65edce32e7b311bbe53c63cc9ab (diff) | |
download | vdr-3ecbdd489e19a1844843fc1e5e60a689908ffc02.tar.gz vdr-3ecbdd489e19a1844843fc1e5e60a689908ffc02.tar.bz2 |
Fixed a crash when replaying with DEBUG_OSD=1
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | dvbapi.c | 6 | ||||
-rw-r--r-- | tools.c | 15 |
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 @@ -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). @@ -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 @@ -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); |