ahssrc is setting wrong error if init fails on android when os older than 5.0
Submitted by Glen Merrill
Link to original bug (#771923)
Description
sys/androidmedia/gstamc.c
- if (!gst_android_hardware_sensor_init ()) {
- goto failed_hardware_camera;
- }
This is setting the error for the camera instead of the sensor. This results in not being able to use the camera when running on an OS older than 5.0 as some of the sensor fields do not exists, such as TYPE_HEART_RATE.
It should be going to
goto failed_hardware_sensor;
like the rest of the checks that were fixed before.
Version: 1.9.2