Thanks to visit codestin.com
Credit goes to github.com

Skip to content

stream.ffmpegmux: abort on ValueError during read#4998

Merged
back-to merged 1 commit into
streamlink:masterfrom
bastimeyer:stream/ffmpegmux/valueerror-on-read
Nov 26, 2022
Merged

stream.ffmpegmux: abort on ValueError during read#4998
back-to merged 1 commit into
streamlink:masterfrom
bastimeyer:stream/ffmpegmux/valueerror-on-read

Conversation

@bastimeyer

Copy link
Copy Markdown
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