mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	proper validity checking for pa_context_is_pending()
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@684 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
		
							parent
							
								
									a0c7ca00e7
								
							
						
					
					
						commit
						b5d177d90b
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -728,7 +728,11 @@ int pa_context_is_pending(pa_context *c) {
 | 
			
		|||
    assert(c);
 | 
			
		||||
    assert(c->ref >= 1);
 | 
			
		||||
 | 
			
		||||
    PA_CHECK_VALIDITY(c, c->state == PA_CONTEXT_READY, PA_ERR_BADSTATE);
 | 
			
		||||
    PA_CHECK_VALIDITY(c,
 | 
			
		||||
                      c->state == PA_CONTEXT_CONNECTING ||
 | 
			
		||||
                      c->state == PA_CONTEXT_AUTHORIZING ||
 | 
			
		||||
                      c->state == PA_CONTEXT_SETTING_NAME ||
 | 
			
		||||
                      c->state == PA_CONTEXT_READY, PA_ERR_BADSTATE);
 | 
			
		||||
 | 
			
		||||
    return (c->pstream && pa_pstream_is_pending(c->pstream)) ||
 | 
			
		||||
        (c->pdispatch && pa_pdispatch_is_pending(c->pdispatch)) ||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue