-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
movie preview bug fix, in some case stream reading functions may block indefinitely #43226
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the documentation:
In non-blocking mode an fgets() call will always return right away while in blocking mode it will wait for data to become available on the stream.
Could be more exhaustive. Is it possible that we only receive incomplete data with this setting?
@jpsn123 thanks for the adaptions! Would you mind rebasing one more time? |
@blizzz thanks for remind, i amend it, merge to one commit |
f6bcc28
to
8b802d7
Compare
…ctions may block indefinitel
@jpsn123 sorry for the delay here. Can you sign off your commit? git rebase HEAD~1 --signoff
git push --force-with-lease origin master Then we should be good :) |
Summary
For some reason, I need to run nextcloud as root, and in this case ffmpeg will block the process when it generates preview.
refencese:
https://www.php.net/manual/en/function.proc-open.php#97012
https://www.php.net/manual/en/function.stream-get-contents.php#106905