mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	filter-chain: fix unmap indexing for LV2 plugins
The index returned to the LV2 plugin starts from 1, but the array index starts from 0.
This commit is contained in:
		
							parent
							
								
									c9acdd2f1f
								
							
						
					
					
						commit
						18148e7add
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -80,7 +80,7 @@ static const char *uri_table_unmap(LV2_URID_Map_Handle handle, LV2_URID urid)
 | 
				
			||||||
	URITable *table = (URITable*)handle;
 | 
						URITable *table = (URITable*)handle;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (urid > 0 && urid <= pw_array_get_len(&table->array, char*))
 | 
						if (urid > 0 && urid <= pw_array_get_len(&table->array, char*))
 | 
				
			||||||
		return *pw_array_get_unchecked(&table->array, urid, char*);
 | 
							return *pw_array_get_unchecked(&table->array, urid - 1, char*);
 | 
				
			||||||
	return NULL;
 | 
						return NULL;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue