Reproducible by passing no args to mpv: twitch-hls-client twitchchannel best -p mpv -a ''
Running rust-gdb it seems the worker thread gets SIGPIPE several times and then exits, while the main thread is waiting for the init barrier .wait() to finish. I figured if the barrier gets dropped then .wait() will return but I guess not. Fix by using something else to sync.
Reproducible by passing no args to mpv:
twitch-hls-client twitchchannel best -p mpv -a ''
Running
rust-gdb
it seems the worker thread gets SIGPIPE several times and then exits, while the main thread is waiting for the init barrier .wait() to finish. I figured if the barrier gets dropped then .wait() will return but I guess not. Fix by using something else to sync.