diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2009-04-19 15:17:17 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2009-04-19 15:17:17 +0200 |
commit | 85645317ae2e924ecc8faa6ff9a7935a7ebff15e (patch) | |
tree | a07d64dee89eb9bc8cb96f2fc77e68679a04cddb /dvbplayer.c | |
parent | 3f492c4f5732abdb15a193fb610a9a73115a4972 (diff) | |
download | vdr-85645317ae2e924ecc8faa6ff9a7935a7ebff15e.tar.gz vdr-85645317ae2e924ecc8faa6ff9a7935a7ebff15e.tar.bz2 |
cDvbPlayer::Empty() subtracts 1 from readIndex, because Action() will first increment it
Diffstat (limited to 'dvbplayer.c')
-rw-r--r-- | dvbplayer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/dvbplayer.c b/dvbplayer.c index 35b98a71..b99ede51 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 2.13 2009/04/18 14:18:22 kls Exp $ + * $Id: dvbplayer.c 2.14 2009/04/19 15:17:17 kls Exp $ */ #include "dvbplayer.h" @@ -318,7 +318,7 @@ void cDvbPlayer::Empty(void) if (nonBlockingFileReader) nonBlockingFileReader->Clear(); if (!firstPacket) // don't set the readIndex twice if Empty() is called more than once - readIndex = ptsIndex.FindIndex(DeviceGetSTC()); + readIndex = ptsIndex.FindIndex(DeviceGetSTC()) - 1; // Action() will first increment it! delete readFrame; // might not have been stored in the buffer in Action() readFrame = NULL; playFrame = NULL; |