forked from Furumi/furumi-tui
- The stream reader records whether the decoder stopped on a read error and whether the server announced the file size. An episode whose connection was lost (stall, expired URL) or whose sizeless stream closed early is no longer completed at its full duration: the last position is saved, playback stops on the episode and the queue does not move on (playback::played_to_the_end). - Streams are cancelled by the player's source generation: a superseded start stops connecting or reading up to its resume offset, and a read blocked inside the audio callback returns within 100 ms instead of up to 30 s. The player no longer reports the end of a superseded source. - A pause or resume pressed while an episode connects is applied when its source arrives (Controller::expect_source). - Seeks report their result (PlayerEvent::Seeked); an episode's seek is saved only when the audio moved, and seeks while connecting or in a stream without Range support are refused with a message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>