Skip to content

Conversation

stefanwayon
Copy link
Contributor

The video reader suppressed code 61 (ENODATA on Linux) that occured at the end of a stream and logged an INFO message. On macOS ENODATA has a different code (96), which resulted in an error message being logged.

This small patch replaces the hard-coded value with the ENODATA constant to suppress the macOS error.

Fixes #3274

The video reader suppressed code 61 (ENODATA on Linux) that occured at
the end of a stream and logged an INFO message. On macOS ENODATA has a
different code (96), which resulted in an error message being logged.

This small patch replaces the hard-coded value with the ENODATA constant
to suppress the macOS warning.
@bjuncek
Copy link
Contributor

bjuncek commented Jan 22, 2021

Looks good to me; LGTM if there are no test failures

@stefanwayon
Copy link
Contributor Author

Looks good to me; LGTM if there are no test failures

Looks like there are some failing tests in master, that are also failing here.

@datumbox
Copy link
Contributor

Looks like there are some failing tests in master, that are also failing here.

Don't worry these are not from your commit. :)

Copy link
Contributor

@datumbox datumbox left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@datumbox datumbox merged commit 7dfd8dc into pytorch:master Jan 22, 2021
facebook-github-bot pushed a commit that referenced this pull request Feb 1, 2021
Summary:
The video reader suppressed code 61 (ENODATA on Linux) that occured at
the end of a stream and logged an INFO message. On macOS ENODATA has a
different code (96), which resulted in an error message being logged.

This small patch replaces the hard-coded value with the ENODATA constant
to suppress the macOS warning.

Reviewed By: datumbox

Differential Revision: D26156366

fbshipit-source-id: 6424c96c4d836a89dc3c4025062bf21d0f5e48c9

Co-authored-by: Vasilis Vryniotis <datumbox@users.noreply.github.com>
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.

Different ENODATA code on macOS

4 participants