Window title may state "Buffering ..." erroneously
The window title of the Qt interface sometimes shows "Buffering ..."
although this is incorrect and the song is already playing for a few seconds.
It is not updated again before another song is played.
How to reproduce:
1. Stop playback
2. Restart Audacious
3. Open multiple audio files (at least three)
Initially the window title is set correctly in MainWindow::title_change_cb(),
then MainWindow::playback_begin_cb() is called which queues MainWindow::buffering_cb()
where the title is overwritten again to "Buffering ...".
#1 Updated by John Lindgren 4 months ago
The order of the hooks is supposed to be:
1. "playback begin"
2. "playback ready"
And "title change" is not supposed to be called unless the title changes after "playback ready" (which should only happen for streaming).
MainWindow::title_change_cb() is connected to "playback ready" and should set the title and cancel the timer for MainWindow::buffering_cb(), so that the title is not changed to back to "Buffering ...".
It seems that if all that is implemented correctly, the title should never be "Buffering ..." after the "playback ready" hook. I'm unable to reproduce the issue, so could you check whether the order of events I've described is happening correctly, or where it's going wrong?
#2 Updated by Thomas Lange 4 months ago
Please see the attached video.
If the title is wrong the order of "playback begin" and "playback ready" is the other way around.
Maybe you may have to try it a few times to reproduce this issue.
Important is to restart Audacious before opening new songs (for whatever reason).
#3 Updated by John Lindgren 4 months ago
Okay thanks. I was able to reproduce it after trying again. This should fix it: