mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	splitter: small cleanups
This commit is contained in:
		
							parent
							
								
									3739b634ec
								
							
						
					
					
						commit
						c40f2ac245
					
				
					 1 changed files with 2 additions and 5 deletions
				
			
		| 
						 | 
					@ -555,7 +555,7 @@ impl_node_port_enum_params(void *object, int seq,
 | 
				
			||||||
			SPA_PARAM_BUFFERS_size,    SPA_POD_CHOICE_RANGE_Int(
 | 
								SPA_PARAM_BUFFERS_size,    SPA_POD_CHOICE_RANGE_Int(
 | 
				
			||||||
							MAX_SAMPLES * port->stride,
 | 
												MAX_SAMPLES * port->stride,
 | 
				
			||||||
							16 * port->stride,
 | 
												16 * port->stride,
 | 
				
			||||||
							MAX_SAMPLES * port->stride),
 | 
												INT32_MAX),
 | 
				
			||||||
			SPA_PARAM_BUFFERS_stride,  SPA_POD_Int(port->stride));
 | 
								SPA_PARAM_BUFFERS_stride,  SPA_POD_Int(port->stride));
 | 
				
			||||||
		break;
 | 
							break;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -982,7 +982,6 @@ static int impl_node_process(void *object)
 | 
				
			||||||
	uint32_t n_src_datas, n_dst_datas;
 | 
						uint32_t n_src_datas, n_dst_datas;
 | 
				
			||||||
	const void **src_datas;
 | 
						const void **src_datas;
 | 
				
			||||||
	void **dst_datas;
 | 
						void **dst_datas;
 | 
				
			||||||
	int res = 0;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	spa_return_val_if_fail(this != NULL, -EINVAL);
 | 
						spa_return_val_if_fail(this != NULL, -EINVAL);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -1070,10 +1069,8 @@ static int impl_node_process(void *object)
 | 
				
			||||||
		convert_process(&this->conv, dst_datas, src_datas, n_samples);
 | 
							convert_process(&this->conv, dst_datas, src_datas, n_samples);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	inio->status = SPA_STATUS_NEED_DATA;
 | 
						inio->status = SPA_STATUS_NEED_DATA;
 | 
				
			||||||
	res |= SPA_STATUS_NEED_DATA;
 | 
					 | 
				
			||||||
	res |= SPA_STATUS_HAVE_DATA;
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
	return res;
 | 
						return SPA_STATUS_NEED_DATA | SPA_STATUS_HAVE_DATA;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static const struct spa_node_methods impl_node = {
 | 
					static const struct spa_node_methods impl_node = {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue