mirror of
				https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
				synced 2023-10-10 17:16:51 +00:00 
			
		
		
		
	Fix bug: AudioFreeBytes fails if no audio ready.
This commit is contained in:
		| @@ -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 | ||||
| } | ||||
|  | ||||
| /** | ||||
|   | ||||
		Reference in New Issue
	
	Block a user