From c36df4fb8e5f03f13466e29578e73252bbae7703 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sun, 12 May 2019 00:11:07 +0200 Subject: [PATCH] [raop] Bring back forgotten keep-alive for Apple TV's The keep-alive was accidently disabled by the player refactor (after v26.5). --- src/outputs/raop.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/outputs/raop.c b/src/outputs/raop.c index 82eeba31..3638fc24 100644 --- a/src/outputs/raop.c +++ b/src/outputs/raop.c @@ -4793,6 +4793,10 @@ raop_write(struct output_buffer *obuf) if (rs->state != RAOP_STATE_CONNECTED) continue; + // Start sending OPTIONS to keep ATV's alive + if (!event_pending(keep_alive_timer, EV_TIMEOUT, NULL)) + evtimer_add(keep_alive_timer, &keep_alive_tv); + rs->state = RAOP_STATE_STREAMING; // Make a cb? }