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

Add props even if framerate is not supported by the driver #517

Merged
merged 2 commits into from
Jul 24, 2023

Conversation

seanavery
Copy link
Contributor

Description

This PR fixes an issue where properties are skipped if framerate querying is not supported by the driver. To fix this we simply add width, height, and format if GetSupportedFramerates errors or returns an empty list.

@seanavery seanavery changed the title Add driver props even if framerate is not supported by the driver Add props even if framerate is not supported by the driver Jul 20, 2023
@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.32 ⚠️

Comparison is base (72c1d7b) 59.02% compared to head (d55c96f) 58.70%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #517      +/-   ##
==========================================
- Coverage   59.02%   58.70%   -0.32%     
==========================================
  Files          63       63              
  Lines        3854     3875      +21     
==========================================
  Hits         2275     2275              
- Misses       1446     1467      +21     
  Partials      133      133              
Impacted Files Coverage Δ
pkg/driver/camera/camera_linux.go 24.47% <0.00%> (-1.94%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@bazile-clyde bazile-clyde self-requested a review July 24, 2023 15:10
@bazile-clyde bazile-clyde merged commit 03c44ee into pion:master Jul 24, 2023
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.

2 participants