mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	parser: handle SPA_POD_None() in parser
SPA_POD_None will have a NULL as the destination address of the pod value, so don't try to write to that.
This commit is contained in:
		
							parent
							
								
									d6b1342bab
								
							
						
					
					
						commit
						9174e5ca20
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -398,10 +398,13 @@ do {											\
 | 
			
		|||
	case 'T':									\
 | 
			
		||||
	case 'O':									\
 | 
			
		||||
	case 'V':									\
 | 
			
		||||
		*va_arg(args, const struct spa_pod**) =					\
 | 
			
		||||
			(pod == NULL || (SPA_POD_TYPE(pod) == SPA_TYPE_None)		\
 | 
			
		||||
	{										\
 | 
			
		||||
		const struct spa_pod **d = va_arg(args, const struct spa_pod**);	\
 | 
			
		||||
		if (d)									\
 | 
			
		||||
			*d = (pod == NULL || (SPA_POD_TYPE(pod) == SPA_TYPE_None)	\
 | 
			
		||||
				? NULL : pod);						\
 | 
			
		||||
		break;									\
 | 
			
		||||
	}										\
 | 
			
		||||
	default:									\
 | 
			
		||||
		break;									\
 | 
			
		||||
	}										\
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue