From 5aedb9b7d3422b9d38a79500d9fbe3a813bc6050 Mon Sep 17 00:00:00 2001 From: Maarten Bosmans Date: Tue, 22 Nov 2011 16:09:18 +0100 Subject: [PATCH] pulsecore: Hardcode FRAME_SIZE_MAX_ALLOW Instead of using PA_SCACHE_ENTRY_SIZE_MAX, the size for FRAME_SIZE_MAX_ALLOW is set directly to the same value. This removes the need for the core-scache.h include, which caused an unwanted dependency of libpulsecommon on libpulsecore. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=41539 --- src/pulsecore/pstream.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/pulsecore/pstream.c b/src/pulsecore/pstream.c index 3e59fc4..b08f6a6 100644 --- a/src/pulsecore/pstream.c +++ b/src/pulsecore/pstream.c @@ -37,7 +37,6 @@ #include #include #include -#include #include #include #include @@ -74,7 +73,11 @@ enum { typedef uint32_t pa_pstream_descriptor[PA_PSTREAM_DESCRIPTOR_MAX]; #define PA_PSTREAM_DESCRIPTOR_SIZE (PA_PSTREAM_DESCRIPTOR_MAX*sizeof(uint32_t)) -#define FRAME_SIZE_MAX_ALLOW PA_SCACHE_ENTRY_SIZE_MAX /* allow uploading a single sample in one frame at max */ + +/* To allow uploading a single sample in one frame, this value should be the + * same size (16 MB) as PA_SCACHE_ENTRY_SIZE_MAX from pulsecore/core-scache.h. + */ +#define FRAME_SIZE_MAX_ALLOW (1024*1024*16) PA_STATIC_FLIST_DECLARE(items, 0, pa_xfree); -- 2.7.4