Fixed jumping to an editing mark when replay has been paused

This commit is contained in:
Klaus Schmidinger 2001-07-28 11:49:23 +02:00
parent ab4e3c7ef8
commit 0f52c4fe33
2 changed files with 4 additions and 1 deletions

View File

@ -588,3 +588,4 @@ Video Disk Recorder Revision History
codes '0' (thanks to Markus Lang).
- Avoiding audio/video distortions in 'Transfer Mode'.
- Fixed replaying in case there is no index file.
- Fixed jumping to an editing mark when replay has been paused.

View File

@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: dvbapi.c 1.92 2001/07/28 11:38:21 kls Exp $
* $Id: dvbapi.c 1.93 2001/07/28 11:45:04 kls Exp $
*/
#include "dvbapi.h"
@ -1016,6 +1016,8 @@ void cReplayBuffer::Goto(int Index, bool Still)
{
if (index) {
Clear(true);
if (paused)
CHECK(ioctl(videoDev, VIDEO_CONTINUE));
if (++Index <= 0)
Index = 1; // not '0', to allow GetNextIFrame() below to work!
uchar FileNumber;