summaryrefslogtreecommitdiffstats
path: root/gst/camerabin
diff options
context:
space:
mode:
authorTommi Myöhänen <ext-tommi.1.myohanen@nokia.com>2009-07-27 14:03:59 +0300
committerStefan Kost <ensonic@users.sf.net>2009-07-28 09:53:22 +0300
commit2d9bdb933d40c0f32dd353b792ac0e70374e5192 (patch)
tree1c7b20bc86ee64c748f1a1205448f33d09e6b5f8 /gst/camerabin
parent01a75329002031199f24609754ce5eef03b3a061 (diff)
downloadgst-plugins-bad-2d9bdb933d40c0f32dd353b792ac0e70374e5192.tar.gz
gst-plugins-bad-2d9bdb933d40c0f32dd353b792ac0e70374e5192.tar.bz2
gst-plugins-bad-2d9bdb933d40c0f32dd353b792ac0e70374e5192.zip
camerabin: photo iface setter functions return TRUE when used in NULL state
We cache the values and apply then when possible.
Diffstat (limited to 'gst/camerabin')
-rw-r--r--gst/camerabin/gstcamerabinphotography.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gst/camerabin/gstcamerabinphotography.c b/gst/camerabin/gstcamerabinphotography.c
index cb17abca..c5689149 100644
--- a/gst/camerabin/gstcamerabinphotography.c
+++ b/gst/camerabin/gstcamerabinphotography.c
@@ -42,7 +42,7 @@ gst_camerabin_set_ev_compensation (GstPhotography * photo,
gfloat ev_compensation)
{
GstCameraBin *camera;
- gboolean ret = FALSE;
+ gboolean ret = TRUE;
g_return_val_if_fail (photo != NULL, FALSE);
@@ -82,7 +82,7 @@ static gboolean
gst_camerabin_set_iso_speed (GstPhotography * photo, guint iso_speed)
{
GstCameraBin *camera;
- gboolean ret = FALSE;
+ gboolean ret = TRUE;
g_return_val_if_fail (photo != NULL, FALSE);
@@ -120,7 +120,7 @@ gst_camerabin_set_white_balance_mode (GstPhotography * photo,
GstWhiteBalanceMode white_balance_mode)
{
GstCameraBin *camera;
- gboolean ret = FALSE;
+ gboolean ret = TRUE;
g_return_val_if_fail (photo != NULL, FALSE);
@@ -161,7 +161,7 @@ gst_camerabin_set_colour_tone_mode (GstPhotography * photo,
GstColourToneMode colour_tone_mode)
{
GstCameraBin *camera;
- gboolean ret = FALSE;
+ gboolean ret = TRUE;
g_return_val_if_fail (photo != NULL, FALSE);
@@ -201,7 +201,7 @@ static gboolean
gst_camerabin_set_flash_mode (GstPhotography * photo, GstFlashMode flash_mode)
{
GstCameraBin *camera;
- gboolean ret = FALSE;
+ gboolean ret = TRUE;
g_return_val_if_fail (photo != NULL, FALSE);
@@ -269,7 +269,7 @@ static gboolean
gst_camerabin_set_scene_mode (GstPhotography * photo, GstSceneMode scene_mode)
{
GstCameraBin *camera;
- gboolean ret = FALSE;
+ gboolean ret = TRUE;
g_return_val_if_fail (photo != NULL, FALSE);
@@ -345,7 +345,7 @@ static gboolean
gst_camerabin_set_config (GstPhotography * photo, GstPhotoSettings * config)
{
GstCameraBin *camera;
- gboolean ret = FALSE;
+ gboolean ret = TRUE;
g_return_val_if_fail (photo != NULL, FALSE);
camera = GST_CAMERABIN (photo);