diff --git a/spa/plugins/aec/aec-null.c b/spa/plugins/aec/aec-null.c index 9029e6d63..b8d5b8528 100644 --- a/spa/plugins/aec/aec-null.c +++ b/spa/plugins/aec/aec-null.c @@ -58,7 +58,7 @@ static int null_run(void *object, const float *rec[], const float *play[], float return 0; } -static struct spa_audio_aec_methods impl_aec = { +static const struct spa_audio_aec_methods impl_aec = { SPA_VERSION_AUDIO_AEC, .init = null_init, .run = null_run, diff --git a/spa/plugins/aec/aec-webrtc.cpp b/spa/plugins/aec/aec-webrtc.cpp index 2d86b85c8..4f94f9f48 100644 --- a/spa/plugins/aec/aec-webrtc.cpp +++ b/spa/plugins/aec/aec-webrtc.cpp @@ -158,7 +158,7 @@ static int webrtc_run(void *data, const float *rec[], const float *play[], float return 0; } -static struct spa_audio_aec_methods impl_aec = { +static const struct spa_audio_aec_methods impl_aec = { SPA_VERSION_AUDIO_AEC_METHODS, .add_listener = NULL, .init = webrtc_init,