mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	alsa-sink: Check for after-avail is redundant
after-avail is always false at this point Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
This commit is contained in:
		
							parent
							
								
									e798969fd5
								
							
						
					
					
						commit
						b7e763bab4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -648,7 +648,7 @@ static int mmap_write(struct userdata *u, pa_usec_t *sleep_usec, bool polled, bo
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (PA_UNLIKELY((sframes = snd_pcm_mmap_commit(u->pcm_handle, offset, frames)) < 0)) {
 | 
					            if (PA_UNLIKELY((sframes = snd_pcm_mmap_commit(u->pcm_handle, offset, frames)) < 0)) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if (!after_avail && (int) sframes == -EAGAIN)
 | 
					                if ((int) sframes == -EAGAIN)
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                if ((r = try_recover(u, "snd_pcm_mmap_commit", (int) sframes)) == 0)
 | 
					                if ((r = try_recover(u, "snd_pcm_mmap_commit", (int) sframes)) == 0)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue