Merge lp://staging/~peat-new/camera-app/sort-video-resolutions-list into lp://staging/camera-app/staging

Proposed by Ratchanan Srirattanamet
Status: Merged
Approved by: Florian Boucault
Approved revision: 697
Merge reported by: Florian Boucault
Merged at revision: not available
Proposed branch: lp://staging/~peat-new/camera-app/sort-video-resolutions-list
Merge into: lp://staging/camera-app/staging
Diff against target: 15 lines (+5/-0)
1 file modified
ViewFinderOverlay.qml (+5/-0)
To merge this branch: bzr merge lp://staging/~peat-new/camera-app/sort-video-resolutions-list
Reviewer Review Type Date Requested Status
system-apps-ci-bot continuous-integration Needs Fixing
Florian Boucault (community) Approve
Review via email: mp+293557@code.staging.launchpad.net

Commit message

Sort supported video resolutions list before using it.

Originally, the code assume that the list is in ascending order. But as
some device (e.g. LG L90 Dual) send this list in descending order, and
actually we probably can't rely on it's order anyway, I decided to sort
the list before using it.

This fixes 2 issues:
1.) video resolution ordering in UI being inconsistent.
2.) when a device send this list in descending order, and unsupported
resolution is currently selected, it'll select lowest resolution,
which is sometimes actually too low for encoder. This cause recording
to fail.

Description of the change

Sort supported video resolutions list before using it.

Originally, the code assume that the list is in ascending order. But as
some device (e.g. LG L90 Dual) send this list in descending order, and
actually we probably can't rely on it's order anyway, I decided to sort
the list before using it.

This fixes 2 issues:
1.) video resolution ordering in UI being inconsistent.
2.) when a device send this list in descending order, and unsupported
resolution is currently selected, it'll select lowest resolution,
which is sometimes actually too low for encoder. This cause recording
to fail.

To post a comment you must log in.
Revision history for this message
Florian Boucault (fboucault) wrote :

Thanks!

review: Approve
Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :

FAILED: Autolanding.
No commit message was specified in the merge proposal. Hit 'Add commit message' on the merge proposal web page or follow the link below. You can approve the merge proposal yourself to rerun.
https://code.launchpad.net/~peat-new/camera-app/sort-video-resolutions-list/+merge/293557/+edit-commit-message

review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches