-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[camera_windows] Set device media type for video preview explicitly #7447
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
Changes from 1 commit
b79eea5
d887b8f
b01c17c
1f17a42
cdf4f5c
2445b24
923fc4d
74cbd43
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -180,6 +180,7 @@ class CaptureControllerImpl : public CaptureController, | |
| // Enumerates video_sources media types and finds out best resolution | ||
| // for preview and video capture. | ||
| HRESULT FindBaseMediaTypes(); | ||
| HRESULT FindBaseMediaTypes(IMFCaptureSource* source); | ||
|
||
|
|
||
| // Stops preview. Called internally on camera reset and dispose. | ||
| HRESULT StopPreview(); | ||
|
|
||
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.
Please don't use the same error message for three different failures; we want to be able to distinguish what failed. Each case in the method should describe what specifically failed.
Uh oh!
There was an error while loading. Please reload this page.
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.
I have clarified the error messages in
79610aa2c52f6971f4e26ab1ada6dd8be04fb6f0923fc4d