mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-10 13:29:58 -05:00
kill autoload stuff as planned
This commit is contained in:
parent
43762ed620
commit
29c7a28817
45 changed files with 166 additions and 944 deletions
|
|
@ -52,7 +52,6 @@ enum {
|
|||
ARG_DISALLOW_MODULE_LOADING,
|
||||
ARG_DISALLOW_EXIT,
|
||||
ARG_EXIT_IDLE_TIME,
|
||||
ARG_MODULE_IDLE_TIME,
|
||||
ARG_SCACHE_IDLE_TIME,
|
||||
ARG_LOG_TARGET,
|
||||
ARG_LOG_META,
|
||||
|
|
@ -88,7 +87,6 @@ static const struct option long_options[] = {
|
|||
{"disallow-module-loading", 2, 0, ARG_DISALLOW_MODULE_LOADING},
|
||||
{"disallow-exit", 2, 0, ARG_DISALLOW_EXIT},
|
||||
{"exit-idle-time", 2, 0, ARG_EXIT_IDLE_TIME},
|
||||
{"module-idle-time", 2, 0, ARG_MODULE_IDLE_TIME},
|
||||
{"scache-idle-time", 2, 0, ARG_SCACHE_IDLE_TIME},
|
||||
{"log-target", 1, 0, ARG_LOG_TARGET},
|
||||
{"log-meta", 2, 0, ARG_LOG_META},
|
||||
|
|
@ -352,10 +350,6 @@ int pa_cmdline_parse(pa_daemon_conf *conf, int argc, char *const argv [], int *d
|
|||
conf->exit_idle_time = atoi(optarg);
|
||||
break;
|
||||
|
||||
case ARG_MODULE_IDLE_TIME:
|
||||
conf->module_idle_time = atoi(optarg);
|
||||
break;
|
||||
|
||||
case ARG_SCACHE_IDLE_TIME:
|
||||
conf->scache_idle_time = atoi(optarg);
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@ static const pa_daemon_conf default_conf = {
|
|||
.disallow_module_loading = FALSE,
|
||||
.disallow_exit = FALSE,
|
||||
.exit_idle_time = 20,
|
||||
.module_idle_time = 20,
|
||||
.scache_idle_time = 20,
|
||||
.auto_log_target = 1,
|
||||
.script_commands = NULL,
|
||||
|
|
@ -416,7 +415,6 @@ int pa_daemon_conf_load(pa_daemon_conf *c, const char *filename) {
|
|||
{ "no-cpu-limit", pa_config_parse_bool, NULL },
|
||||
{ "disable-shm", pa_config_parse_bool, NULL },
|
||||
{ "exit-idle-time", pa_config_parse_int, NULL },
|
||||
{ "module-idle-time", pa_config_parse_int, NULL },
|
||||
{ "scache-idle-time", pa_config_parse_int, NULL },
|
||||
{ "realtime-priority", parse_rtprio, NULL },
|
||||
{ "dl-search-path", pa_config_parse_string, NULL },
|
||||
|
|
@ -485,7 +483,6 @@ int pa_daemon_conf_load(pa_daemon_conf *c, const char *filename) {
|
|||
table[i++].data = &c->no_cpu_limit;
|
||||
table[i++].data = &c->disable_shm;
|
||||
table[i++].data = &c->exit_idle_time;
|
||||
table[i++].data = &c->module_idle_time;
|
||||
table[i++].data = &c->scache_idle_time;
|
||||
table[i++].data = c;
|
||||
table[i++].data = &c->dl_search_path;
|
||||
|
|
@ -642,7 +639,6 @@ char *pa_daemon_conf_dump(pa_daemon_conf *c) {
|
|||
pa_strbuf_printf(s, "no-cpu-limit = %s\n", pa_yes_no(c->no_cpu_limit));
|
||||
pa_strbuf_printf(s, "disable-shm = %s\n", pa_yes_no(c->disable_shm));
|
||||
pa_strbuf_printf(s, "exit-idle-time = %i\n", c->exit_idle_time);
|
||||
pa_strbuf_printf(s, "module-idle-time = %i\n", c->module_idle_time);
|
||||
pa_strbuf_printf(s, "scache-idle-time = %i\n", c->scache_idle_time);
|
||||
pa_strbuf_printf(s, "dl-search-path = %s\n", pa_strempty(c->dl_search_path));
|
||||
pa_strbuf_printf(s, "default-script-file = %s\n", pa_strempty(pa_daemon_conf_get_default_script_file(c)));
|
||||
|
|
|
|||
|
|
@ -72,7 +72,6 @@ typedef struct pa_daemon_conf {
|
|||
log_meta,
|
||||
log_time;
|
||||
int exit_idle_time,
|
||||
module_idle_time,
|
||||
scache_idle_time,
|
||||
auto_log_target,
|
||||
realtime_priority,
|
||||
|
|
|
|||
|
|
@ -901,7 +901,6 @@ int main(int argc, char *argv[]) {
|
|||
c->default_n_fragments = conf->default_n_fragments;
|
||||
c->default_fragment_size_msec = conf->default_fragment_size_msec;
|
||||
c->exit_idle_time = conf->exit_idle_time;
|
||||
c->module_idle_time = conf->module_idle_time;
|
||||
c->scache_idle_time = conf->scache_idle_time;
|
||||
c->resample_method = conf->resample_method;
|
||||
c->realtime_priority = conf->realtime_priority;
|
||||
|
|
@ -963,7 +962,7 @@ int main(int argc, char *argv[]) {
|
|||
goto finish;
|
||||
}
|
||||
|
||||
if (c->default_sink_name && !pa_namereg_get(c, c->default_sink_name, PA_NAMEREG_SINK, TRUE) && conf->fail) {
|
||||
if (c->default_sink_name && !pa_namereg_get(c, c->default_sink_name, PA_NAMEREG_SINK) && conf->fail) {
|
||||
pa_log_error(_("Default sink name (%s) does not exist in name register."), c->default_sink_name);
|
||||
goto finish;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue