mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	plugins: just check the data pointer
We don't need to look at the data type, we just just be happy when the data pointer is filled in.
This commit is contained in:
		
							parent
							
								
									8899d00bfc
								
							
						
					
					
						commit
						c8ffcaaefe
					
				
					 20 changed files with 20 additions and 66 deletions
				
			
		| 
						 | 
				
			
			@ -584,9 +584,7 @@ impl_node_port_use_buffers(void *object,
 | 
			
		|||
		b->outstanding = true;
 | 
			
		||||
		b->h = spa_buffer_find_meta_data(buffers[i], SPA_META_Header, sizeof(*b->h));
 | 
			
		||||
 | 
			
		||||
		if ((d[0].type == SPA_DATA_MemPtr ||
 | 
			
		||||
		     d[0].type == SPA_DATA_MemFd ||
 | 
			
		||||
		     d[0].type == SPA_DATA_DmaBuf) && d[0].data == NULL) {
 | 
			
		||||
		if (d[0].data == NULL) {
 | 
			
		||||
			spa_log_error(this->log, NAME " %p: invalid memory on buffer %p", this,
 | 
			
		||||
				      buffers[i]);
 | 
			
		||||
		}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue