mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	stream: guard against NULL params
This commit is contained in:
		
							parent
							
								
									c03850fd76
								
							
						
					
					
						commit
						8646117374
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -642,7 +642,7 @@ static int update_params(struct filter *impl, struct port *port, uint32_t id,
 | 
				
			||||||
		clear_params(impl, port, id);
 | 
							clear_params(impl, port, id);
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		for (i = 0; i < n_params; i++) {
 | 
							for (i = 0; i < n_params; i++) {
 | 
				
			||||||
			if (!spa_pod_is_object(params[i]))
 | 
								if (params[i] == NULL || !spa_pod_is_object(params[i]))
 | 
				
			||||||
				continue;
 | 
									continue;
 | 
				
			||||||
			clear_params(impl, port, SPA_POD_OBJECT_ID(params[i]));
 | 
								clear_params(impl, port, SPA_POD_OBJECT_ID(params[i]));
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -295,7 +295,7 @@ static int update_params(struct stream *impl, uint32_t id,
 | 
				
			||||||
		clear_params(impl, id);
 | 
							clear_params(impl, id);
 | 
				
			||||||
	} else {
 | 
						} else {
 | 
				
			||||||
		for (i = 0; i < n_params; i++) {
 | 
							for (i = 0; i < n_params; i++) {
 | 
				
			||||||
			if (!spa_pod_is_object(params[i]))
 | 
								if (params[i] == NULL || !spa_pod_is_object(params[i]))
 | 
				
			||||||
				continue;
 | 
									continue;
 | 
				
			||||||
			clear_params(impl, SPA_POD_OBJECT_ID(params[i]));
 | 
								clear_params(impl, SPA_POD_OBJECT_ID(params[i]));
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue