diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-04-28 15:16:15 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-04-28 15:16:15 +0200 |
commit | 842efc15c53957f534d31c5527b1c65dc486c496 (patch) | |
tree | e653cc04a1e1f1aca0a80f7adfac9cb298c72473 /dvbplayer.c | |
parent | 3606c5ef2321f199996075a8240a89ca598d0b67 (diff) | |
download | vdr-842efc15c53957f534d31c5527b1c65dc486c496.tar.gz vdr-842efc15c53957f534d31c5527b1c65dc486c496.tar.bz2 |
Fixed a busy loop in fast forward if the next video data file is missing
Diffstat (limited to 'dvbplayer.c')
-rw-r--r-- | dvbplayer.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/dvbplayer.c b/dvbplayer.c index 2ba98b83..ff514277 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.45 2006/04/17 11:00:00 kls Exp $ + * $Id: dvbplayer.c 1.45.1.1 2007/04/28 14:55:22 kls Exp $ */ #include "dvbplayer.h" @@ -402,8 +402,10 @@ void cDvbPlayer::Action(void) bool TimeShiftMode = index->IsStillRecording(); int Index = index->GetNextIFrame(readIndex, playDir == pdForward, &FileNumber, &FileOffset, &Length, TimeShiftMode); if (Index >= 0) { - if (!NextFile(FileNumber, FileOffset)) + if (!NextFile(FileNumber, FileOffset)) { + readIndex = Index; continue; + } } else { if (!TimeShiftMode && playDir == pdForward) { |