mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	filter-chain: add support to read from offset
So that the channel of the response file can be set
This commit is contained in:
		
							parent
							
								
									be9ac91ce1
								
							
						
					
					
						commit
						dbe9f02471
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
					@ -416,6 +416,10 @@ static void * convolver_instantiate(const struct fc_descriptor * Descriptor,
 | 
				
			||||||
			if (spa_json_get_int(&it[1], &blocksize) <= 0)
 | 
								if (spa_json_get_int(&it[1], &blocksize) <= 0)
 | 
				
			||||||
				return NULL;
 | 
									return NULL;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
							else if (spa_streq(key, "offset")) {
 | 
				
			||||||
 | 
								if (spa_json_get_int(&it[1], &index) <= 0)
 | 
				
			||||||
 | 
									return NULL;
 | 
				
			||||||
 | 
							}
 | 
				
			||||||
		else if (spa_json_next(&it[1], &val) < 0)
 | 
							else if (spa_json_next(&it[1], &val) < 0)
 | 
				
			||||||
			break;
 | 
								break;
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue