-
Notifications
You must be signed in to change notification settings - Fork 111
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
[RSDK-1171] - Add error message when requested resolution is not available for webcam #1696
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.
LGTM
return nil, err | ||
} | ||
if img.Bounds().Dx() != attrs.Width || img.Bounds().Dy() != attrs.Height { | ||
return nil, errors.Errorf("requested width and height (%dx%d) are not available for this webcam"+ |
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.
[nit] add space before the rest of the error message
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.
done
|
When no driver supporting requested resolution is found by gostream, make RDK return an error message and display the "closest" supported resolution.