diff options
author | Johns <johns98@gmx.net> | 2012-06-08 15:27:42 +0200 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-06-08 15:27:42 +0200 |
commit | da9886e9f10388cb459d33a5419abd310e4211ca (patch) | |
tree | 0647cc5a17d057c99a9b49f1eaeefd2f8913760f /softhddev.c | |
parent | 32527f832e203e8d111f0da07f91e146e24dd48a (diff) | |
download | vdr-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.c | 4 |
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; |