media/libspeex_resampler/outside-speex.patch
author Bogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Wed, 24 Feb 2016 13:34:10 +0200
changeset 334105 c8b51efe8c9e247200883b7ba978a8daf08e51da
parent 192471 0f1cea1a1a952c84d2a5758dbf9efc3ee6fe5dfc
child 489291 7abe86744c5c34e6c3c089024362985a5a0dea44
permissions -rw-r--r--
Bug 1250439 - preven memory leak in Classifier::GetLookupCache. r?gcp MozReview-Commit-ID: BlROMq9gFzj

diff --git a/media/libspeex_resampler/src/speex_resampler.h b/media/libspeex_resampler/src/speex_resampler.h
--- a/media/libspeex_resampler/src/speex_resampler.h
+++ b/media/libspeex_resampler/src/speex_resampler.h
@@ -34,24 +34,25 @@
    ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    POSSIBILITY OF SUCH DAMAGE.
 */
 
 
 #ifndef SPEEX_RESAMPLER_H
 #define SPEEX_RESAMPLER_H
 
-#ifdef OUTSIDE_SPEEX
+#if 1 /* OUTSIDE_SPEEX */
 
 /********* WARNING: MENTAL SANITY ENDS HERE *************/
 
 /* If the resampler is defined outside of Speex, we change the symbol names so that 
    there won't be any clash if linking with Speex later on. */
 
 /* #define RANDOM_PREFIX your software name here */
+#define RANDOM_PREFIX moz_speex
 #ifndef RANDOM_PREFIX
 #error "Please define RANDOM_PREFIX (above) to something specific to your project to prevent symbol name clashes"
 #endif
 
 #define CAT_PREFIX2(a,b) a ## b
 #define CAT_PREFIX(a,b) CAT_PREFIX2(a, b)
       
 #define speex_resampler_init CAT_PREFIX(RANDOM_PREFIX,_resampler_init)