mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
Fix bug: AudioFreeBytes fails if no audio ready.
This commit is contained in:
parent
baf577aba5
commit
eec30433b6
@ -1,6 +1,8 @@
|
||||
User johns
|
||||
Date:
|
||||
|
||||
Fix bug: AudioFreeBytes didn't check if audio running/compiled.
|
||||
Fix bug: snd_pcm_state: Assertion `pcm' failed.
|
||||
Add support for fullscreen and fullscreen toogle.
|
||||
Instant update deinterlace configuration changes.
|
||||
Fix subtitle position.
|
||||
|
6
audio.c
6
audio.c
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user