mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	protocol-native: fix marshal of add_port
We need to terminate the arguments with NULL.
This commit is contained in:
		
							parent
							
								
									edfa210656
								
							
						
					
					
						commit
						f4048ae663
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -401,7 +401,7 @@ static int client_node_demarshal_add_port(void *object, const struct pw_protocol
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (spa_pod_parser_get(&prs,
 | 
						if (spa_pod_parser_get(&prs,
 | 
				
			||||||
			SPA_POD_Int(&direction),
 | 
								SPA_POD_Int(&direction),
 | 
				
			||||||
			SPA_POD_Int(&port_id)) < 0)
 | 
								SPA_POD_Int(&port_id), NULL) < 0)
 | 
				
			||||||
		return -EINVAL;
 | 
							return -EINVAL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (spa_pod_parser_push_struct(&prs, &f[1]) < 0)
 | 
						if (spa_pod_parser_push_struct(&prs, &f[1]) < 0)
 | 
				
			||||||
| 
						 | 
					@ -670,7 +670,7 @@ client_node_marshal_add_port(void *object,
 | 
				
			||||||
	spa_pod_builder_push_struct(b, &f);
 | 
						spa_pod_builder_push_struct(b, &f);
 | 
				
			||||||
	spa_pod_builder_add(b,
 | 
						spa_pod_builder_add(b,
 | 
				
			||||||
			SPA_POD_Int(direction),
 | 
								SPA_POD_Int(direction),
 | 
				
			||||||
			SPA_POD_Int(port_id));
 | 
								SPA_POD_Int(port_id), NULL);
 | 
				
			||||||
	push_dict(b, props);
 | 
						push_dict(b, props);
 | 
				
			||||||
	spa_pod_builder_pop(b, &f);
 | 
						spa_pod_builder_pop(b, &f);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue