summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-03-06 18:37:40 +0100
committerJohns <johns98@gmx.net>2012-03-06 18:37:40 +0100
commit1cbaddf75c979c6f61a95243157fa5fcd2da388a (patch)
tree78746c4364748abaddb326f57a987ce3687599e8
parent226760490b7c0813bb040c2a7435935344a1aaea (diff)
downloadvdr-plugin-softhddevice-1cbaddf75c979c6f61a95243157fa5fcd2da388a.tar.gz
vdr-plugin-softhddevice-1cbaddf75c979c6f61a95243157fa5fcd2da388a.tar.bz2
Need extra space in ring buffer for sequence end.
-rw-r--r--softhddev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/softhddev.c b/softhddev.c
index d2412ae..6de211c 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -1630,7 +1630,7 @@ int PlayVideo(const uint8_t * data, int size)
return size;
}
// buffer full: needed for replay
- if (atomic_read(&VideoPacketsFilled) >= VIDEO_PACKET_MAX - 1) {
+ if (atomic_read(&VideoPacketsFilled) >= VIDEO_PACKET_MAX - 3) {
return 0;
}
// get pts/dts