mirror of
https://github.com/mpv-player/mpv
synced 2024-12-27 01:22:30 +00:00
temporary disable mf support for systems without glob
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9834 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
425b08fcc6
commit
0c185d95e2
@ -5,13 +5,16 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <glob.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_GLOB
|
||||||
|
#include <glob.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "mp_msg.h"
|
#include "mp_msg.h"
|
||||||
#include "help_mp.h"
|
#include "help_mp.h"
|
||||||
#include "stream.h"
|
#include "stream.h"
|
||||||
@ -24,6 +27,7 @@ float mf_fps = 25.0;
|
|||||||
char * mf_type = NULL; //"jpg";
|
char * mf_type = NULL; //"jpg";
|
||||||
|
|
||||||
mf_t* open_mf(char * filename){
|
mf_t* open_mf(char * filename){
|
||||||
|
#ifdef HAVE_GLOB
|
||||||
glob_t gg;
|
glob_t gg;
|
||||||
struct stat fs;
|
struct stat fs;
|
||||||
int i;
|
int i;
|
||||||
@ -110,5 +114,9 @@ mf_t* open_mf(char * filename){
|
|||||||
exit_mf:
|
exit_mf:
|
||||||
free( fname );
|
free( fname );
|
||||||
return mf;
|
return mf;
|
||||||
|
#else
|
||||||
|
mp_msg(MSGT_STREAM,MSGL_FATAL,"[mf] mf support is disabled on your os\n");
|
||||||
|
return 0;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -31,6 +31,10 @@
|
|||||||
//#include "mp_msg.h"
|
//#include "mp_msg.h"
|
||||||
#include "stream.h"
|
#include "stream.h"
|
||||||
|
|
||||||
|
#ifdef __MINGW32__
|
||||||
|
typedef long ssize_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/************************************************************************
|
/************************************************************************
|
||||||
* error codes returned by y4m_* functions
|
* error codes returned by y4m_* functions
|
||||||
|
Loading…
Reference in New Issue
Block a user