Repository navigation
op/alsa: remove polling for events before pause (fixes #1461) - #1462
Conversation
This polling is there since the initial commit, but there is no apparent reason for it to exist. Sometimes it would wait infinitely and block the main thread and hang the whole player.
|
Another issue randomly popped up after this change... So there was some reason for the polling |
|
The issue is that after pausing several times the playback just won't unpause even though |
|
I want to squeeze in one more commit to remove the annoying debug output spam from ip/flac |
This issue just disappeared |
There was a problem hiding this comment.
Seems correct since snd_pcm_ready is apparently for waiting for room to write. Other projects don't seem to call snd_pcm_wait before snd_pcm_pause.
I didn't test this change.
|
This fixes #1461, right? |
Yep |
Checking the call stack after the player hangs shows that main thread is blocked by

snd_pcm_wait()which is waiting for events.I just removed it, there is no apparent reason for it to be there.