mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 13:08:49 +00:00
camerabin: photo iface setter functions return TRUE when used in NULL state
We cache the values and apply then when possible.
This commit is contained in:
parent
01a7532900
commit
2d9bdb933d
1 changed files with 7 additions and 7 deletions
|
@ -42,7 +42,7 @@ gst_camerabin_set_ev_compensation (GstPhotography * photo,
|
||||||
gfloat ev_compensation)
|
gfloat ev_compensation)
|
||||||
{
|
{
|
||||||
GstCameraBin *camera;
|
GstCameraBin *camera;
|
||||||
gboolean ret = FALSE;
|
gboolean ret = TRUE;
|
||||||
|
|
||||||
g_return_val_if_fail (photo != NULL, FALSE);
|
g_return_val_if_fail (photo != NULL, FALSE);
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ static gboolean
|
||||||
gst_camerabin_set_iso_speed (GstPhotography * photo, guint iso_speed)
|
gst_camerabin_set_iso_speed (GstPhotography * photo, guint iso_speed)
|
||||||
{
|
{
|
||||||
GstCameraBin *camera;
|
GstCameraBin *camera;
|
||||||
gboolean ret = FALSE;
|
gboolean ret = TRUE;
|
||||||
|
|
||||||
g_return_val_if_fail (photo != NULL, FALSE);
|
g_return_val_if_fail (photo != NULL, FALSE);
|
||||||
|
|
||||||
|
@ -120,7 +120,7 @@ gst_camerabin_set_white_balance_mode (GstPhotography * photo,
|
||||||
GstWhiteBalanceMode white_balance_mode)
|
GstWhiteBalanceMode white_balance_mode)
|
||||||
{
|
{
|
||||||
GstCameraBin *camera;
|
GstCameraBin *camera;
|
||||||
gboolean ret = FALSE;
|
gboolean ret = TRUE;
|
||||||
|
|
||||||
g_return_val_if_fail (photo != NULL, FALSE);
|
g_return_val_if_fail (photo != NULL, FALSE);
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ gst_camerabin_set_colour_tone_mode (GstPhotography * photo,
|
||||||
GstColourToneMode colour_tone_mode)
|
GstColourToneMode colour_tone_mode)
|
||||||
{
|
{
|
||||||
GstCameraBin *camera;
|
GstCameraBin *camera;
|
||||||
gboolean ret = FALSE;
|
gboolean ret = TRUE;
|
||||||
|
|
||||||
g_return_val_if_fail (photo != NULL, FALSE);
|
g_return_val_if_fail (photo != NULL, FALSE);
|
||||||
|
|
||||||
|
@ -201,7 +201,7 @@ static gboolean
|
||||||
gst_camerabin_set_flash_mode (GstPhotography * photo, GstFlashMode flash_mode)
|
gst_camerabin_set_flash_mode (GstPhotography * photo, GstFlashMode flash_mode)
|
||||||
{
|
{
|
||||||
GstCameraBin *camera;
|
GstCameraBin *camera;
|
||||||
gboolean ret = FALSE;
|
gboolean ret = TRUE;
|
||||||
|
|
||||||
g_return_val_if_fail (photo != NULL, FALSE);
|
g_return_val_if_fail (photo != NULL, FALSE);
|
||||||
|
|
||||||
|
@ -269,7 +269,7 @@ static gboolean
|
||||||
gst_camerabin_set_scene_mode (GstPhotography * photo, GstSceneMode scene_mode)
|
gst_camerabin_set_scene_mode (GstPhotography * photo, GstSceneMode scene_mode)
|
||||||
{
|
{
|
||||||
GstCameraBin *camera;
|
GstCameraBin *camera;
|
||||||
gboolean ret = FALSE;
|
gboolean ret = TRUE;
|
||||||
|
|
||||||
g_return_val_if_fail (photo != NULL, FALSE);
|
g_return_val_if_fail (photo != NULL, FALSE);
|
||||||
|
|
||||||
|
@ -345,7 +345,7 @@ static gboolean
|
||||||
gst_camerabin_set_config (GstPhotography * photo, GstPhotoSettings * config)
|
gst_camerabin_set_config (GstPhotography * photo, GstPhotoSettings * config)
|
||||||
{
|
{
|
||||||
GstCameraBin *camera;
|
GstCameraBin *camera;
|
||||||
gboolean ret = FALSE;
|
gboolean ret = TRUE;
|
||||||
g_return_val_if_fail (photo != NULL, FALSE);
|
g_return_val_if_fail (photo != NULL, FALSE);
|
||||||
camera = GST_CAMERABIN (photo);
|
camera = GST_CAMERABIN (photo);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue