diff options
author | Johns <johns98@gmx.net> | 2012-01-13 22:39:04 +0100 |
---|---|---|
committer | Johns <johns98@gmx.net> | 2012-01-13 22:39:04 +0100 |
commit | eec30433b68ea0e9c66cb4a947faafd6a9681f55 (patch) | |
tree | 7e81f3673ad7e0238b12bda22786a80d16a4ddf2 /audio.c | |
parent | baf577aba59a85cfe41849606256a279523fa50c (diff) | |
download | vdr-plugin-softhddevice-eec30433b68ea0e9c66cb4a947faafd6a9681f55.tar.gz vdr-plugin-softhddevice-eec30433b68ea0e9c66cb4a947faafd6a9681f55.tar.bz2 |
Fix bug: AudioFreeBytes fails if no audio ready.
Diffstat (limited to 'audio.c')
-rw-r--r-- | audio.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1735,12 +1735,12 @@ void AudioPoller(void) int AudioFreeBytes(void) { #ifdef USE_ALSA - return RingBufferFreeBytes(AlsaRingBuffer); + return AlsaRingBuffer ? RingBufferFreeBytes(AlsaRingBuffer) : INT32_MAX; #endif #ifdef USE_OSS - return RingBufferFreeBytes(OssRingBuffer); + return OssRingBuffer ? RingBufferFreeBytes(OssRingBuffer) : INT32_MAX; #endif - return -1; + return INT32_MAX; // no driver, much space } /** |