Fixed resuming replay at a given position, which was off by one frame

This commit is contained in:
Klaus Schmidinger 2016-12-22 09:41:48 +01:00
parent 1135a1f9d5
commit fd85701a84
3 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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).

View File

@ -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;