Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream.ffmpegmux: abort on ValueError during read #4998

Merged

Conversation

bastimeyer
Copy link
Member

See

This fixes the copy_to_pipe thread reading the input stream after it has been closed, which in this case raises a ValueError:

ValueError: read of closed file

This is another case of an ungraceful stream end where it aborts the pipe copying due to thread timing issues that are not being dealt with correctly.

No new tests, because there are no tests for the copy_to_pipe thread. :/

@back-to back-to merged commit 32d8ff4 into streamlink:master Nov 26, 2022
@bastimeyer bastimeyer deleted the stream/ffmpegmux/valueerror-on-read branch November 26, 2022 11:30
Billy2011 added a commit to Billy2011/streamlink-27 that referenced this pull request Dec 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants