summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2022-01-13 21:41:41 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2022-01-13 21:41:41 +0100
commitadeb6314fb07648dc2e04e5bb388d98525aa8104 (patch)
treeb5491cdc8e9330e54540240e003e0f5e582bb7b9
parent78a09b59267439deb496ec43ba5b73f1d197a258 (diff)
downloadvdr-adeb6314fb07648dc2e04e5bb388d98525aa8104.tar.gz
vdr-adeb6314fb07648dc2e04e5bb388d98525aa8104.tar.bz2
Fixed starting replay after jumping to an editing mark
-rw-r--r--HISTORY3
-rw-r--r--dvbplayer.c4
2 files changed, 4 insertions, 3 deletions
diff --git a/HISTORY b/HISTORY
index 3e101289..5ad099a5 100644
--- a/HISTORY
+++ b/HISTORY
@@ -9766,7 +9766,8 @@ Video Disk Recorder Revision History
(reported by Timo Weingärtner).
- Official release.
-2021-12-30:
+2022-01-13:
- Replaced strncpy() with memcpy() in strreplace() to avoid a compiler warning
(reported by Marco Mäkelä).
+- Fixed starting replay after jumping to an editing mark.
diff --git a/dvbplayer.c b/dvbplayer.c
index 33c992bd..2ee846b6 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.6 2019/05/27 13:54:19 kls Exp $
+ * $Id: dvbplayer.c 5.1 2022/01/13 21:41:41 kls Exp $
*/
#include "dvbplayer.h"
@@ -914,7 +914,7 @@ void cDvbPlayer::Goto(int Index, bool Still)
ptsIndex.Put(isPesRecording ? PesGetPts(b) : TsGetPts(b, r), Index, true);
}
playMode = pmStill;
- readIndex = Index;
+ readIndex = Index - 1; // makes sure a later play starts with this I-frame
}
}
else {