mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-09 13:29:59 -05:00
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
This commit is contained in:
parent
ba2dee08ba
commit
5aedb9b7d3
1 changed files with 5 additions and 2 deletions
|
|
@ -37,7 +37,6 @@
|
||||||
#include <pulsecore/socket.h>
|
#include <pulsecore/socket.h>
|
||||||
#include <pulsecore/queue.h>
|
#include <pulsecore/queue.h>
|
||||||
#include <pulsecore/log.h>
|
#include <pulsecore/log.h>
|
||||||
#include <pulsecore/core-scache.h>
|
|
||||||
#include <pulsecore/creds.h>
|
#include <pulsecore/creds.h>
|
||||||
#include <pulsecore/refcnt.h>
|
#include <pulsecore/refcnt.h>
|
||||||
#include <pulsecore/flist.h>
|
#include <pulsecore/flist.h>
|
||||||
|
|
@ -74,7 +73,11 @@ enum {
|
||||||
typedef uint32_t pa_pstream_descriptor[PA_PSTREAM_DESCRIPTOR_MAX];
|
typedef uint32_t pa_pstream_descriptor[PA_PSTREAM_DESCRIPTOR_MAX];
|
||||||
|
|
||||||
#define PA_PSTREAM_DESCRIPTOR_SIZE (PA_PSTREAM_DESCRIPTOR_MAX*sizeof(uint32_t))
|
#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);
|
PA_STATIC_FLIST_DECLARE(items, 0, pa_xfree);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue