mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	spa: fix initializer for old GCC
Older gcc versions seem to require the members to appear in the designated initializer in the order they are in the definition of the struct when compiling C++. otherwise compilation fails with: ../spa/plugins/aec/aec-webrtc.cpp:167:1: sorry, unimplemented: non-trivial designated initializers not supported }; ^
This commit is contained in:
		
							parent
							
								
									d2f8cd2114
								
							
						
					
					
						commit
						b50efe0188
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		| 
						 | 
					@ -161,6 +161,8 @@ static int webrtc_run(void *data, const float *rec[], const float *play[], float
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static struct spa_audio_aec_methods impl_aec = {
 | 
					static struct spa_audio_aec_methods impl_aec = {
 | 
				
			||||||
 | 
					    .version = 0,
 | 
				
			||||||
 | 
						.add_listener = NULL,
 | 
				
			||||||
	.init = webrtc_init,
 | 
						.init = webrtc_init,
 | 
				
			||||||
	.run = webrtc_run,
 | 
						.run = webrtc_run,
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue