summaryrefslogtreecommitdiff
path: root/gst/camerabin2
diff options
context:
space:
mode:
authorThiago Santos <thiago.sousa.santos@collabora.com>2012-05-02 15:24:26 -0300
committerThiago Santos <thiago.sousa.santos@collabora.com>2012-05-02 15:25:32 -0300
commitcc09cd130358c20f6688d7e7d9b0ec437d0e5b58 (patch)
tree0886715aac026ed20562a83f0af955fc6b87efd6 /gst/camerabin2
parenta944578ef97d0fbffc87523367972fb768f53380 (diff)
downloadgstreamer-plugins-bad-cc09cd130358c20f6688d7e7d9b0ec437d0e5b58.tar.gz
camerabin: Fix get/set_property for encoding profiles
Encoding profiles are objects, not boxed types
Diffstat (limited to 'gst/camerabin2')
-rw-r--r--gst/camerabin2/gstcamerabin2.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c
index 344aa1925..7c7871832 100644
--- a/gst/camerabin2/gstcamerabin2.c
+++ b/gst/camerabin2/gstcamerabin2.c
@@ -2158,7 +2158,7 @@ gst_camera_bin_set_property (GObject * object, guint prop_id,
case PROP_VIDEO_ENCODING_PROFILE:
if (camera->video_profile)
gst_encoding_profile_unref (camera->video_profile);
- camera->video_profile = (GstEncodingProfile *) g_value_dup_boxed (value);
+ camera->video_profile = (GstEncodingProfile *) g_value_dup_object (value);
camera->video_profile_switch = TRUE;
break;
case PROP_IMAGE_FILTER:
@@ -2214,7 +2214,7 @@ gst_camera_bin_set_property (GObject * object, guint prop_id,
case PROP_IMAGE_ENCODING_PROFILE:
if (camera->image_profile)
gst_encoding_profile_unref (camera->image_profile);
- camera->image_profile = (GstEncodingProfile *) g_value_dup_boxed (value);
+ camera->image_profile = (GstEncodingProfile *) g_value_dup_object (value);
camera->image_profile_switch = TRUE;
break;
case PROP_FLAGS:
@@ -2351,7 +2351,7 @@ gst_camera_bin_get_property (GObject * object, guint prop_id,
break;
case PROP_VIDEO_ENCODING_PROFILE:
if (camera->video_profile) {
- g_value_set_boxed (value, camera->video_profile);
+ g_value_set_object (value, camera->video_profile);
}
break;
case PROP_VIDEO_FILTER:
@@ -2389,7 +2389,7 @@ gst_camera_bin_get_property (GObject * object, guint prop_id,
break;
case PROP_IMAGE_ENCODING_PROFILE:
if (camera->image_profile) {
- g_value_set_boxed (value, camera->image_profile);
+ g_value_set_object (value, camera->image_profile);
}
break;
case PROP_IDLE: