mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	add sentinel to parser as well
This commit is contained in:
		
							parent
							
								
									9b4b915f25
								
							
						
					
					
						commit
						633c27824f
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -295,7 +295,7 @@ static inline int spa_pod_parser_getv(struct spa_pod_parser *parser,
 | 
			
		|||
	return 0;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
static inline int spa_pod_parser_get(struct spa_pod_parser *parser,
 | 
			
		||||
static inline SPA_SENTINEL int spa_pod_parser_get(struct spa_pod_parser *parser,
 | 
			
		||||
				     const char *format, ...)
 | 
			
		||||
{
 | 
			
		||||
	int res;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -110,7 +110,7 @@ int main(int argc, char *argv[])
 | 
			
		|||
			"s", &vs,
 | 
			
		||||
			"R", &vr,
 | 
			
		||||
			"F", &vfr,
 | 
			
		||||
			"P", &va, 0);
 | 
			
		||||
			"P", &va, NULL);
 | 
			
		||||
 | 
			
		||||
	printf("%u %lu %f %g %s %ux%u %u/%u\n", vi, vl, vf, vd, vs, vr.width, vr.height, vfr.num,
 | 
			
		||||
	       vfr.denom);
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue