xine-lib
1.2.13-20230125hg15249
xine-lib-1.2.13
src
libw32dll
common.c
Go to the documentation of this file.
1
#ifdef HAVE_DIRENT_H
2
#include <dirent.h>
3
#endif
4
5
static
const
char
*
get_win32_codecs_path
(
config_values_t
*cfg) {
6
DIR *dir;
7
const
char
*path, *cfgpath;
8
const
char
*
const
listpath[] = {
""
,
9
"/usr/lib/codecs"
,
10
"/usr/local/lib/codecs"
,
11
"/usr/lib/win32"
,
12
"/usr/local/lib/win32"
,
13
NULL
};
14
int
i = 0;
15
16
cfgpath = cfg->
register_filename
(cfg,
"decoder.external.win32_codecs_path"
, WIN32_PATH,
XINE_CONFIG_STRING_IS_DIRECTORY_NAME
,
17
_
(
"path to Win32 codecs"
),
18
_
(
"If you have the Windows or Apple Quicktime codec packs "
19
"installed, specify the path the codec directory here. "
20
"If xine can find the Windows or Apple Quicktime codecs, "
21
"it will use them to decode various Windows Media and "
22
"Quicktime streams for you. Consult the xine FAQ for "
23
"more information on how to install the codecs."
),
24
10,
NULL
,
NULL
);
25
26
while
(listpath[i]) {
27
if
(i == 0) path = cfgpath;
28
else
path = listpath[i];
29
30
if
((dir = opendir(path)) !=
NULL
) {
31
closedir(dir);
32
return
path;
33
}
34
35
i++;
36
}
37
38
return
NULL
;
39
}
get_win32_codecs_path
static const char * get_win32_codecs_path(config_values_t *cfg)
Definition
common.c:5
config_values_s
Definition
configfile.h:83
config_values_s::register_filename
char *(* register_filename)(config_values_t *self, const char *key, const char *def_value, int req_type, const char *description, const char *help, int exp_level, xine_config_cb_t changed_cb, void *cb_data)
Definition
configfile.h:119
_
#define _(String)
Definition
vcdplayer.h:39
XINE_CONFIG_STRING_IS_DIRECTORY_NAME
#define XINE_CONFIG_STRING_IS_DIRECTORY_NAME
Definition
xine.h:1643
NULL
NULL
Definition
xine_plugin.c:78
Generated by
1.10.0