From 44e78177029dfb2f96e1765caa0e67b2139f9016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Barnab=C3=A1s=20P=C5=91cze?= Date: Fri, 22 Jul 2022 01:46:16 +0200 Subject: [PATCH] spa: aec: mark aec method tables `const` --- spa/plugins/aec/aec-null.c | 2 +- spa/plugins/aec/aec-webrtc.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,