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

Revert "stream: don't try to read from all-sparse/no-data files" #14125

Merged
merged 1 commit into from
May 12, 2024

Conversation

sfan5
Copy link
Member

@sfan5 sfan5 commented May 12, 2024

No description provided.

The stream layer is just not the right place to make this change
since it's also used for completely unrelated purposes such as reading
configs.

This reverts commit bb7a485.
@sfan5 sfan5 requested a review from kasper93 May 12, 2024 12:31
Copy link

Download the artifacts for this pull request:

Windows
macOS

Copy link
Contributor

@kasper93 kasper93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The concern from the original review (#13817 (comment)) that returning an error for empty files might be unexpected for this API’s users seems valid. Rejecting empty files might be useful in some cases, but it needs to be implemented more carefully on the reader’s side to act accordingly. Unconditionally rejecting empty files on open is not valid, as mentioned in previous comments regarding the issues. This stream is used for various purposes, such as loading shader cache files, config files, and so on; empty files are not always an error.

Thus, the idea can be revisited with a more careful implementation.

@kasper93 kasper93 merged commit a33fd3b into mpv-player:master May 12, 2024
17 checks passed
@sfan5 sfan5 deleted the r13817 branch May 12, 2024 16:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants