mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	remote-node: don't enum invalid param ids
This commit is contained in:
		
							parent
							
								
									e9eabead4b
								
							
						
					
					
						commit
						02d0802004
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -287,6 +287,8 @@ static int add_node_update(struct pw_proxy *proxy, uint32_t change_mask)
 | 
				
			||||||
			struct spa_pod *param;
 | 
								struct spa_pod *param;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			id = node->info.params[i].id;
 | 
								id = node->info.params[i].id;
 | 
				
			||||||
 | 
								if (id == SPA_PARAM_Invalid)
 | 
				
			||||||
 | 
									continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			for (idx = 0;;) {
 | 
								for (idx = 0;;) {
 | 
				
			||||||
				spa_pod_builder_init(&b, buf, sizeof(buf));
 | 
									spa_pod_builder_init(&b, buf, sizeof(buf));
 | 
				
			||||||
| 
						 | 
					@ -344,6 +346,8 @@ static int add_port_update(struct pw_proxy *proxy, struct pw_port *port, uint32_
 | 
				
			||||||
			struct spa_pod *param;
 | 
								struct spa_pod *param;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			id = port->info.params[i].id;
 | 
								id = port->info.params[i].id;
 | 
				
			||||||
 | 
								if (id == SPA_PARAM_Invalid)
 | 
				
			||||||
 | 
									continue;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			for (idx = 0;;) {
 | 
								for (idx = 0;;) {
 | 
				
			||||||
				spa_pod_builder_init(&b, buf, sizeof(buf));
 | 
									spa_pod_builder_init(&b, buf, sizeof(buf));
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue