summaryrefslogtreecommitdiff
path: root/dvbplayer.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2007-10-13 12:28:35 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2007-10-13 12:28:35 +0200
commit78ecc96e17981a688f5d373c47298ca2b448a6fa (patch)
tree2bd22a9b6eaead1b08475650da02003581fe8b34 /dvbplayer.c
parentb943bf2c503baa79184d8088d28fa740b656db74 (diff)
downloadvdr-78ecc96e17981a688f5d373c47298ca2b448a6fa.tar.gz
vdr-78ecc96e17981a688f5d373c47298ca2b448a6fa.tar.bz2
Implemented sending all frames to devices that can handle them in fast forward trick speeds
Diffstat (limited to 'dvbplayer.c')
-rw-r--r--dvbplayer.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/dvbplayer.c b/dvbplayer.c
index 99b3f5ce..a072a445 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 1.46 2007/04/28 14:55:22 kls Exp $
+ * $Id: dvbplayer.c 1.47 2007/10/13 12:20:58 kls Exp $
*/
#include "dvbplayer.h"
@@ -400,7 +400,13 @@ void cDvbPlayer::Action(void)
uchar FileNumber;
int FileOffset;
bool TimeShiftMode = index->IsStillRecording();
- int Index = index->GetNextIFrame(readIndex, playDir == pdForward, &FileNumber, &FileOffset, &Length, TimeShiftMode);
+ int Index = -1;
+ if (DeviceHasIBPTrickSpeed() && playDir == pdForward) {
+ if (index->Get(readIndex + 1, &FileNumber, &FileOffset, NULL, &Length))
+ Index = readIndex + 1;
+ }
+ else
+ Index = index->GetNextIFrame(readIndex, playDir == pdForward, &FileNumber, &FileOffset, &Length, TimeShiftMode);
if (Index >= 0) {
if (!NextFile(FileNumber, FileOffset)) {
readIndex = Index;