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().
This commit is contained in:
parent
4d3d091c22
commit
71e88271d9
1
NEWS
1
NEWS
|
@ -21,6 +21,7 @@ ver 0.15 - (200?/??/??)
|
|||
- added configuration option to disable decoder plugins
|
||||
* audio outputs:
|
||||
- added option to disable audio outputs by default
|
||||
- wait 10 seconds before reopening after play failure
|
||||
- shout: enlarged buffer size to 32 kB
|
||||
- null: allow disabling synchronization
|
||||
- mvp: fall back to stereo
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue