summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2016-12-22 09:41:48 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2016-12-22 09:41:48 +0100
commitfd85701a84c976318afbb69e13d96c1ec44112fc (patch)
tree2217277a0ba5e1c2c3478dc7caa4348f1d9ead1c
parent1135a1f9d5d2ee7a36b717ce0fb8f4093d62f982 (diff)
downloadvdr-fd85701a84c976318afbb69e13d96c1ec44112fc.tar.gz
vdr-fd85701a84c976318afbb69e13d96c1ec44112fc.tar.bz2
Fixed resuming replay at a given position, which was off by one frame
-rw-r--r--CONTRIBUTORS1
-rw-r--r--HISTORY2
-rw-r--r--dvbplayer.c4
3 files changed, 6 insertions, 1 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS
index 38cf59ef..a695bc11 100644
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -3327,6 +3327,7 @@ Thomas Reufer <thomas@reufer.ch>
differences between it and cFont::Height()
for making the cPlayer member functions FramesPerSecond, GetIndex and GetReplayMode
'const'
+ for fixing resuming replay at a given position, which was off by one frame
Eike Sauer <EikeSauer@t-online.de>
for reporting a problem with channels that need more than 5 TS packets for detecting
diff --git a/HISTORY b/HISTORY
index 3b63099d..4edf138c 100644
--- a/HISTORY
+++ b/HISTORY
@@ -8855,3 +8855,5 @@ Video Disk Recorder Revision History
between it and cFont::Height() (suggested to Thomas Reufer).
- Made the cPlayer member functions FramesPerSecond, GetIndex and GetReplayMode
'const' (thanks to Thomas Reufer).
+- Fixed resuming replay at a given position, which was off by one frame (thanks
+ to Thomas Reufer).
diff --git a/dvbplayer.c b/dvbplayer.c
index ca4007e3..e5c9270b 100644
--- a/dvbplayer.c
+++ b/dvbplayer.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: dvbplayer.c 4.1 2015/08/06 13:09:19 kls Exp $
+ * $Id: dvbplayer.c 4.2 2016/12/22 09:40:30 kls Exp $
*/
#include "dvbplayer.h"
@@ -433,6 +433,8 @@ void cDvbPlayer::Action(void)
}
StateKey.Remove();
}
+ if (readIndex > 0) // will first be incremented in the loop!
+ --readIndex;
nonBlockingFileReader = new cNonBlockingFileReader;
int Length = 0;