mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	loopback: Don't push zero-sized block to memblockq
During my work on module-loopback I found a bug that sometimes crashes pulse when module-loopback is loaded due to pushing a zero-length block into the memblockq. As there is a one-line fix I thought you might want it for 6.0.
This commit is contained in:
		
							parent
							
								
									a4c600e375
								
							
						
					
					
						commit
						d6ef0ec3dc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -272,7 +272,7 @@ static void source_output_push_cb(pa_source_output *o, const pa_memchunk *chunk)
 | 
			
		|||
    pa_source_output_assert_io_context(o);
 | 
			
		||||
    pa_assert_se(u = o->userdata);
 | 
			
		||||
 | 
			
		||||
    if (u->skip > chunk->length) {
 | 
			
		||||
    if (u->skip >= chunk->length) {
 | 
			
		||||
        u->skip -= chunk->length;
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue