Mercurial > mplayer.hg
comparison libmpdemux/mf.c @ 9833:9cdbcd86c176
temporary disable mf support for systems without glob
author | faust3 |
---|---|
date | Fri, 04 Apr 2003 20:32:21 +0000 |
parents | 27fff718ede6 |
children | 84b64dece730 |
comparison
equal
deleted
inserted
replaced
9832:298e261aecd7 | 9833:9cdbcd86c176 |
---|---|
3 #include <stdio.h> | 3 #include <stdio.h> |
4 #include <stdlib.h> | 4 #include <stdlib.h> |
5 #include <string.h> | 5 #include <string.h> |
6 #include <unistd.h> | 6 #include <unistd.h> |
7 #include <fcntl.h> | 7 #include <fcntl.h> |
8 #include <glob.h> | |
9 #include <errno.h> | 8 #include <errno.h> |
10 #include <sys/types.h> | 9 #include <sys/types.h> |
11 #include <sys/stat.h> | 10 #include <sys/stat.h> |
12 | 11 |
13 #include "config.h" | 12 #include "config.h" |
13 | |
14 #ifdef HAVE_GLOB | |
15 #include <glob.h> | |
16 #endif | |
14 | 17 |
15 #include "mp_msg.h" | 18 #include "mp_msg.h" |
16 #include "help_mp.h" | 19 #include "help_mp.h" |
17 #include "stream.h" | 20 #include "stream.h" |
18 | 21 |
22 int mf_h = 0; //288; | 25 int mf_h = 0; //288; |
23 float mf_fps = 25.0; | 26 float mf_fps = 25.0; |
24 char * mf_type = NULL; //"jpg"; | 27 char * mf_type = NULL; //"jpg"; |
25 | 28 |
26 mf_t* open_mf(char * filename){ | 29 mf_t* open_mf(char * filename){ |
30 #ifdef HAVE_GLOB | |
27 glob_t gg; | 31 glob_t gg; |
28 struct stat fs; | 32 struct stat fs; |
29 int i; | 33 int i; |
30 char * fname; | 34 char * fname; |
31 mf_t * mf; | 35 mf_t * mf; |
108 mp_msg( MSGT_STREAM,MSGL_INFO,"[mf] number of files: %d\n",mf->nr_of_files ); | 112 mp_msg( MSGT_STREAM,MSGL_INFO,"[mf] number of files: %d\n",mf->nr_of_files ); |
109 | 113 |
110 exit_mf: | 114 exit_mf: |
111 free( fname ); | 115 free( fname ); |
112 return mf; | 116 return mf; |
117 #else | |
118 mp_msg(MSGT_STREAM,MSGL_FATAL,"[mf] mf support is disabled on your os\n"); | |
119 return 0; | |
120 #endif | |
113 } | 121 } |
114 | 122 |