(reproducibility=easy) Radio stream buffers, but does not start to play
Problem
Shortwave gets irrecoverable silent if a stream of a radio station is buffering, but the user clicks play on the same or another radio station before the stream of the first radio station got to 100 %.
Steps to reproduce
- Start Shortwave from a terminal:
RUST_BACKTRACE=1 RUST_LOG=shortwave=debug flatpak run de.haeckerfelix.Shortwave > /tmp/shortwave.log 2>&1
- Have a radio channel in mind that does not start to play immediately when clicking play, but that may take some seconds to buffer (for this defect to show up easily).
- Now click play on a radio station.
- Wait a (split of a) second or so.
- Click play again - either on the same radio station or another radio station.
- Observe the player re-buffers and when it gets to 100 % the output in the log files stop and the play button of the Shortwave player has changed to a button where the user is able to press stop [] if desired. But no audio is played!
- It is impossible to recover from the problem besides closing down Shortwave and restart it again.
Expected behaviour
Shortwave buffers the stream and then starts to play regardless:
- if the user by accident has clicked on the same stream twice
or
- changed mind and clicked play on another stream before the first stream started to play.
Actual behaviour
Radio buffers, but never starts playing if the user has hit the play button twice consecutively before buffering has ended from the first click on play.
Thanks Felix for a great radio player! =)
Log files
Edited by Anders Lind