From b50efe0188d3f91be57f6f9fc1a151838978dbca Mon Sep 17 00:00:00 2001 From: souravdas142 Date: Thu, 17 Feb 2022 20:13:30 +0530 Subject: [PATCH] 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 }; ^ --- spa/plugins/aec/aec-webrtc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spa/plugins/aec/aec-webrtc.cpp b/spa/plugins/aec/aec-webrtc.cpp index 59c910afc..d09ccf226 100644 --- a/spa/plugins/aec/aec-webrtc.cpp +++ b/spa/plugins/aec/aec-webrtc.cpp @@ -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 = { + .version = 0, + .add_listener = NULL, .init = webrtc_init, .run = webrtc_run, };