summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 23041f3)
raw | patch | inline | side by side (parent: 23041f3)
author | Max Kellermann <max.kellermann@gmail.com> | |
Wed, 2 Aug 2017 07:18:13 +0000 (09:18 +0200) | ||
committer | Max Kellermann <max.kellermann@gmail.com> | |
Wed, 2 Aug 2017 07:18:13 +0000 (09:18 +0200) |
libmpdclient's default is 30s, which is just as good as our 5s
timeout. Why change that with extra code?
timeout. Why change that with extra code?
src/defaults.h | patch | blob | history | |
src/options.c | patch | blob | history |
diff --git a/src/defaults.h b/src/defaults.h
index bcd21ac201ce7b10437431946b0101478f668a70..258a8743eaecf8cf2efbd299830f09732e56c6c0 100644 (file)
--- a/src/defaults.h
+++ b/src/defaults.h
#define DEFAULT_LYRICS_TIMEOUT 100
-#define DEFAULT_MPD_TIMEOUT 5000 /* 5 seconds */
-
#define DEFAULT_SCROLL TRUE
#define DEFAULT_SCROLL_SEP " *** "
diff --git a/src/options.c b/src/options.c
index f6fa63f6573319e89ba424143890ab07d0a1fdab..ca6d415e41e5da28f0c08376f3039e0af189cd80 100644 (file)
--- a/src/options.c
+++ b/src/options.c
.audible_bell = true,
.bell_on_wrap = true,
.status_message_time = 3,
- .timeout_ms = DEFAULT_MPD_TIMEOUT,
+ .timeout_ms = 0,
#ifndef NCMPC_MINI
.scroll = DEFAULT_SCROLL,
.welcome_screen_list = true,
#ifndef NCMPC_MINI
options.scroll_sep = g_strdup(DEFAULT_SCROLL_SEP);
#endif
- if (getenv("MPD_TIMEOUT") != NULL)
- /* let libmpdclient parse the environment variable */
- options.timeout_ms = 0;
}
void