From eb8f6e578ed376fe75039972850cd72179894485 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 21 Jun 2024 16:36:57 -0400 Subject: libspeex: Fix up two build regressions in 547b6a570 Broke rbspeex build if we weren't using system libspeex --- lib/rbcodec/codecs/libspeex/resample.c | 2 +- lib/rbcodec/codecs/libspeex/speex_header.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/rbcodec/codecs/libspeex/resample.c b/lib/rbcodec/codecs/libspeex/resample.c index 5f5b9c6b4d..5861579323 100644 --- a/lib/rbcodec/codecs/libspeex/resample.c +++ b/lib/rbcodec/codecs/libspeex/resample.c @@ -58,7 +58,7 @@ */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include "config-speex.h" #endif #ifdef OUTSIDE_SPEEX diff --git a/lib/rbcodec/codecs/libspeex/speex_header.c b/lib/rbcodec/codecs/libspeex/speex_header.c index f83e0f2152..ac8312cb51 100644 --- a/lib/rbcodec/codecs/libspeex/speex_header.c +++ b/lib/rbcodec/codecs/libspeex/speex_header.c @@ -186,7 +186,9 @@ EXPORT SpeexHeader *speex_packet_to_header(char *packet, int size) if (le_header->mode >= SPEEX_NB_MODES || le_header->mode < 0) { speex_notify("Invalid mode specified in Speex header"); +#if 0 speex_free (le_header); +#endif return NULL; } -- cgit v1.2.3