mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	filter-chain: initialize NULL data for each node
This commit is contained in:
		
							parent
							
								
									2c0ce6afc2
								
							
						
					
					
						commit
						e281628847
					
				
					 1 changed files with 7 additions and 2 deletions
				
			
		| 
						 | 
					@ -2419,7 +2419,7 @@ static int graph_instantiate(struct graph *graph)
 | 
				
			||||||
	const struct fc_descriptor *d;
 | 
						const struct fc_descriptor *d;
 | 
				
			||||||
	uint32_t i, j, max_samples = impl->quantum_limit;
 | 
						uint32_t i, j, max_samples = impl->quantum_limit;
 | 
				
			||||||
	int res;
 | 
						int res;
 | 
				
			||||||
	float *sd = impl->silence_data, *dd = impl->discard_data;
 | 
						float *sd, *dd;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (graph->instantiated)
 | 
						if (graph->instantiated)
 | 
				
			||||||
		return 0;
 | 
							return 0;
 | 
				
			||||||
| 
						 | 
					@ -2432,8 +2432,13 @@ static int graph_instantiate(struct graph *graph)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		desc = node->desc;
 | 
							desc = node->desc;
 | 
				
			||||||
		d = desc->desc;
 | 
							d = desc->desc;
 | 
				
			||||||
		if (d->flags & FC_DESCRIPTOR_SUPPORTS_NULL_DATA)
 | 
							if (d->flags & FC_DESCRIPTOR_SUPPORTS_NULL_DATA) {
 | 
				
			||||||
			sd = dd = NULL;
 | 
								sd = dd = NULL;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
							else {
 | 
				
			||||||
 | 
								sd = impl->silence_data;
 | 
				
			||||||
 | 
								dd = impl->discard_data;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		for (i = 0; i < node->n_hndl; i++) {
 | 
							for (i = 0; i < node->n_hndl; i++) {
 | 
				
			||||||
			pw_log_info("instantiate %s %d rate:%lu", d->name, i, impl->rate);
 | 
								pw_log_info("instantiate %s %d rate:%lu", d->name, i, impl->rate);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue