1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00:00

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:
faust3 2003-09-21 12:16:16 +00:00
parent 386e88d918
commit b76c0e461a
2 changed files with 23 additions and 15 deletions

View File

@ -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

View File

@ -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*/