mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	filter-chain: add props only once
Only add the properties offset in the builder after we actually got a property or else we end up with the same property twice.
This commit is contained in:
		
							parent
							
								
									7d27668fb2
								
							
						
					
					
						commit
						5d741a2b3c
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -1153,10 +1153,11 @@ static int setup_streams(struct impl *impl)
 | 
				
			||||||
			SPA_PARAM_EnumFormat, &impl->capture_info);
 | 
								SPA_PARAM_EnumFormat, &impl->capture_info);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	for (i = 0;; i++) {
 | 
						for (i = 0;; i++) {
 | 
				
			||||||
		if ((offs = pw_array_add(&offsets, sizeof(uint32_t))) != NULL)
 | 
							uint32_t save = b.b.state.offset;
 | 
				
			||||||
			*offs = b.b.state.offset;
 | 
					 | 
				
			||||||
		if (spa_filter_graph_enum_prop_info(graph, i, &b.b, NULL) != 1)
 | 
							if (spa_filter_graph_enum_prop_info(graph, i, &b.b, NULL) != 1)
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
 | 
							if ((offs = pw_array_add(&offsets, sizeof(uint32_t))) != NULL)
 | 
				
			||||||
 | 
								*offs = save;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if ((offs = pw_array_add(&offsets, sizeof(uint32_t))) != NULL)
 | 
						if ((offs = pw_array_add(&offsets, sizeof(uint32_t))) != NULL)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue