2bc4 / twitch-hls-client

Minimal CLI client for watching/recording Twitch streams
GNU General Public License v3.0
22 stars 5 forks source link

Hang when player dies on startup #31

Closed 2bc4 closed 5 months ago

2bc4 commented 5 months ago

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.