summaryrefslogtreecommitdiff
path: root/softhddev.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2012-06-08 15:27:42 +0200
committerJohns <johns98@gmx.net>2012-06-08 15:27:42 +0200
commitda9886e9f10388cb459d33a5419abd310e4211ca (patch)
tree0647cc5a17d057c99a9b49f1eaeefd2f8913760f /softhddev.c
parent32527f832e203e8d111f0da07f91e146e24dd48a (diff)
downloadvdr-plugin-softhddevice-da9886e9f10388cb459d33a5419abd310e4211ca.tar.gz
vdr-plugin-softhddevice-da9886e9f10388cb459d33a5419abd310e4211ca.tar.bz2
Fix bug: dvd plugin times out. Readme update.
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/softhddev.c b/softhddev.c
index 1c041d4..28f72c9 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -2203,8 +2203,8 @@ int Poll(int timeout)
int t;
// one buffer is full
- full = AudioFreeBytes() >= AUDIO_MIN_BUFFER_FREE
- || atomic_read(&VideoPacketsFilled) < VIDEO_PACKET_MAX - 3;
+ full = AudioFreeBytes() < AUDIO_MIN_BUFFER_FREE
+ || atomic_read(&VideoPacketsFilled) > VIDEO_PACKET_MAX - 3;
if (!full || !timeout) {
return !full;