summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2002-04-07 09:48:32 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2002-04-07 09:48:32 +0200
commitc5fac4ed21a25dcd0364cc8d2b991871bb1db640 (patch)
tree95fbe0806a0e6c8f1f1b1b192f85b39fc9265d0a
parent3581c20976445d6213bfcf74c26cecc5cd8861af (diff)
downloadvdr-c5fac4ed21a25dcd0364cc8d2b991871bb1db640.tar.gz
vdr-c5fac4ed21a25dcd0364cc8d2b991871bb1db640.tar.bz2
Another fix to the still picture workaround
-rw-r--r--CONTRIBUTORS4
-rw-r--r--HISTORY3
-rw-r--r--dvbapi.c7
3 files changed, 10 insertions, 4 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index c86c2d3f..ec742b18 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -276,3 +276,7 @@ Dirk Wiebel <dirk@wiebel.de>
for reporting a bug in the editing process in case a previously edited file
with the same name was manually deleted on a system with more than one video
directory
+
+Gerald Raaf <graaf@attglobal.net>
+ for helping to fix the still picture workaround in case the progress display
+ is active
diff --git a/HISTORY b/HISTORY
index 50536469..7e60d244 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1179,7 +1179,8 @@ Video Disk Recorder Revision History
- Added Spanish language texts (thanks to Ruben Nunez Francisco).
- Fixed resetting the "First day" timer parameter once the timer actually starts
recording.
-- Fixed the still picture workaround in case the progress display is active.
+- Fixed the still picture workaround in case the progress display is active
+ (thanks to Gerald Raaf).
- Fixed a problem with accessing the epg.data file before it is fully written
(thanks to Thilo Wunderlich for reporting this one).
- Now the EPG scan skips channels that have their 'Ca' parameter explicitly set
diff --git a/dvbapi.c b/dvbapi.c
index e9e67e4e..9d59d900 100644
--- a/dvbapi.c
+++ b/dvbapi.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbapi.c 1.169 2002/04/06 15:21:29 kls Exp $
+ * $Id: dvbapi.c 1.170 2002/04/07 09:35:51 kls Exp $
*/
#include "dvbapi.h"
@@ -1194,9 +1194,10 @@ void cReplayBuffer::DisplayFrame(uchar *b, int Length)
CHECK(ioctl(videoDev, VIDEO_STILLPICTURE, &sp));
#else
#define MIN_IFRAME 400000
- for (int i = MIN_IFRAME / Length + 1; i > 0; i--)
+ for (int i = MIN_IFRAME / Length + 1; i > 0; i--) {
safe_write(videoDev, b, Length);
- usleep(10000); // allows the buffer to be displayed in case the progress display is active
+ usleep(1); // allows the buffer to be displayed in case the progress display is active
+ }
#endif
}