From 71e88271d96953e5ff10d4dce02715d7f06e0bb3 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 9 Mar 2009 19:08:35 +0100 Subject: output_thread: wait 10 seconds before reopening after play failure This is similar to the MPD 0.14 patch "wait 10 seconds before reopening a failed device", which only covered open() failures. This patch adds the same feature for play(). --- src/output_thread.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/output_thread.c') diff --git a/src/output_thread.c b/src/output_thread.c index c5e4b4fa2..a55260785 100644 --- a/src/output_thread.c +++ b/src/output_thread.c @@ -83,6 +83,10 @@ static void ao_play(struct audio_output *ao) ao_plugin_cancel(ao->plugin, ao->data); ao_close(ao); + + /* don't automatically reopen this device for + 10 seconds */ + ao->fail_timer = g_timer_new(); break; } -- cgit v1.2.3