mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 01:28:34 +00:00
androidmedia: Clear err if we don't have an optional camera field/constant
Fixes startup on devices where those fields/constants are not found. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5136>
This commit is contained in:
parent
2e08447537
commit
8602154155
1 changed files with 7 additions and 0 deletions
|
@ -979,6 +979,7 @@ _init_classes (void)
|
|||
}
|
||||
} else {
|
||||
android_hardware_camera_parameters.EFFECT_EMBOSS = NULL;
|
||||
g_clear_error (&err);
|
||||
}
|
||||
|
||||
fieldID =
|
||||
|
@ -1000,6 +1001,7 @@ _init_classes (void)
|
|||
}
|
||||
} else {
|
||||
android_hardware_camera_parameters.EFFECT_SKETCH = NULL;
|
||||
g_clear_error (&err);
|
||||
}
|
||||
|
||||
fieldID =
|
||||
|
@ -1021,6 +1023,7 @@ _init_classes (void)
|
|||
}
|
||||
} else {
|
||||
android_hardware_camera_parameters.EFFECT_NEON = NULL;
|
||||
g_clear_error (&err);
|
||||
}
|
||||
|
||||
fieldID =
|
||||
|
@ -1519,6 +1522,7 @@ _init_classes (void)
|
|||
}
|
||||
} else {
|
||||
android_hardware_camera_parameters.SCENE_MODE_BACKLIGHT = NULL;
|
||||
g_clear_error (&err);
|
||||
}
|
||||
|
||||
fieldID =
|
||||
|
@ -1540,6 +1544,7 @@ _init_classes (void)
|
|||
}
|
||||
} else {
|
||||
android_hardware_camera_parameters.SCENE_MODE_FLOWERS = NULL;
|
||||
g_clear_error (&err);
|
||||
}
|
||||
|
||||
fieldID =
|
||||
|
@ -1561,6 +1566,7 @@ _init_classes (void)
|
|||
}
|
||||
} else {
|
||||
android_hardware_camera_parameters.SCENE_MODE_AR = NULL;
|
||||
g_clear_error (&err);
|
||||
}
|
||||
|
||||
fieldID =
|
||||
|
@ -1582,6 +1588,7 @@ _init_classes (void)
|
|||
}
|
||||
} else {
|
||||
android_hardware_camera_parameters.SCENE_MODE_HDR = NULL;
|
||||
g_clear_error (&err);
|
||||
}
|
||||
|
||||
fieldID =
|
||||
|
|
Loading…
Reference in a new issue