Closed Bug 1111752 Opened 10 years ago Closed 10 years ago

[B2G][Gecko][Camera] Metering mode initialized to wrong value

Categories

(Firefox OS Graveyard :: Gaia::Camera, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
2.2 S2 (19dec)

People

(Reporter: aosmond, Assigned: aosmond)

References

Details

Attachments

(1 file)

Metering mode is initialized to center-weighted but it turns out it selects the wrong template function to set the value:

12-15 14:12:13.609  5374  5399 I Gecko   : nsresult mozilla::GonkCameraParameters::SetImpl(uint32_t, const T&) [with T = bool; nsresult = tag_nsresult; uint32_t = unsigned int]:154 -- auto-exposure

T = bool, where it should be const char* but we don't implement a SetTranslated for const char*. Easiest thing to do is to use the nsString-typed mode instead of the C string.

It will fail later in the log with:
12-15 14:12:13.649   200  5402 E QCameraParameters: Invalid auto exposure value: true

This breaks turning on the flash (somehow).
Assignee: nobody → aosmond
Blocks: 1052821
Status: NEW → ASSIGNED
Comment on attachment 8536734 [details] [diff] [review]
Fix metering mode initial value, v1

Review of attachment 8536734 [details] [diff] [review]:
-----------------------------------------------------------------

That's embarrassing.
Attachment #8536734 - Flags: review?(mhabicher) → review+
Keywords: checkin-needed
Target Milestone: --- → 2.2 S2 (19dec)
https://hg.mozilla.org/mozilla-central/rev/11e571ee2234
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: