From ec4fd9fd88a10bfc88154e8e6791d5d69858a2e5 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 28 Feb 2009 20:43:23 +0100 Subject: output: use GTimer instead of time_t for reopen after failure time() is not a monotonic timer, and MPD might get confused by clock skews. clock_gettime() provides a monotonic clock, but is not portable to non-POSIX systems (i.e. Windows). This patch uses GLib's GTimer API, which aims to be portable. --- src/output_command.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src/output_command.c') diff --git a/src/output_command.c b/src/output_command.c index 4d6515af6..2e33ca8b8 100644 --- a/src/output_command.c +++ b/src/output_command.c @@ -38,7 +38,6 @@ audio_output_enable_index(unsigned idx) ao = audio_output_get(idx); - ao->reopen_after = 0; ao->enabled = true; idle_add(IDLE_OUTPUT); -- cgit v1.2.3