Add download timeout with automatic retries and track-skip

zifi_input_fifo_check now tracks inactivity in frame-counted quanta
(~5s @ 50Hz, so independent of CPU/turbo clock): after ~10s of total
silence from the server on a request, it's retried automatically (up
to 3 times, resending the already-built request). If retries are also
exhausted: for a music download, skip to the next track in the list
(capped at 8 consecutive dead tracks so an unreachable network doesn't
spin through the whole playlist forever); for anything else, fall back
to the existing manual-cancel path.

Confirmed working on hardware.
This commit is contained in:
2026-09-01 11:27:53 +03:00
parent ab370d598d
commit 54e0031a22
3 changed files with 99 additions and 3 deletions
Binary file not shown.