mirror of https://github.com/mpv-player/mpv
disable af export for systems without mmap
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10909 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
386e88d918
commit
b76c0e461a
33
libaf/af.c
33
libaf/af.c
|
@ -7,6 +7,7 @@
|
|||
#endif
|
||||
|
||||
#include "af.h"
|
||||
#include "../config.h"
|
||||
|
||||
// Static list of filters
|
||||
extern af_info_t af_info_dummy;
|
||||
|
@ -23,21 +24,23 @@ extern af_info_t af_info_surround;
|
|||
extern af_info_t af_info_sub;
|
||||
extern af_info_t af_info_export;
|
||||
|
||||
static af_info_t* filter_list[]={ \
|
||||
&af_info_dummy,\
|
||||
&af_info_delay,\
|
||||
&af_info_channels,\
|
||||
&af_info_format,\
|
||||
&af_info_resample,\
|
||||
&af_info_volume,\
|
||||
&af_info_equalizer,\
|
||||
&af_info_gate,\
|
||||
&af_info_comp,\
|
||||
&af_info_pan,\
|
||||
&af_info_surround,\
|
||||
&af_info_sub,\
|
||||
&af_info_export,\
|
||||
NULL \
|
||||
static af_info_t* filter_list[]={
|
||||
&af_info_dummy,
|
||||
&af_info_delay,
|
||||
&af_info_channels,
|
||||
&af_info_format,
|
||||
&af_info_resample,
|
||||
&af_info_volume,
|
||||
&af_info_equalizer,
|
||||
&af_info_gate,
|
||||
&af_info_comp,
|
||||
&af_info_pan,
|
||||
&af_info_surround,
|
||||
&af_info_sub,
|
||||
#ifdef HAVE_SYS_MMAN_H
|
||||
&af_info_export,
|
||||
#endif
|
||||
NULL
|
||||
};
|
||||
|
||||
// Message printing
|
||||
|
|
|
@ -12,6 +12,9 @@
|
|||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include <unistd.h>
|
||||
#include "../config.h"
|
||||
|
||||
#ifdef HAVE_SYS_MMAN_H
|
||||
#include <sys/types.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -261,3 +264,5 @@ af_info_t af_info_export = {
|
|||
AF_FLAGS_REENTRANT,
|
||||
af_open
|
||||
};
|
||||
|
||||
#endif /*HAVE_SYS_MMAN_H*/
|
||||
|
|
Loading…
Reference in New Issue