camerabin: Fix get/set_property for encoding profiles

Encoding profiles are objects, not boxed types
This commit is contained in:
Thiago Santos 2012-05-02 15:24:26 -03:00
parent a944578ef9
commit cc09cd1303

View file

@ -2158,7 +2158,7 @@ gst_camera_bin_set_property (GObject * object, guint prop_id,
case PROP_VIDEO_ENCODING_PROFILE: case PROP_VIDEO_ENCODING_PROFILE:
if (camera->video_profile) if (camera->video_profile)
gst_encoding_profile_unref (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; camera->video_profile_switch = TRUE;
break; break;
case PROP_IMAGE_FILTER: case PROP_IMAGE_FILTER:
@ -2214,7 +2214,7 @@ gst_camera_bin_set_property (GObject * object, guint prop_id,
case PROP_IMAGE_ENCODING_PROFILE: case PROP_IMAGE_ENCODING_PROFILE:
if (camera->image_profile) if (camera->image_profile)
gst_encoding_profile_unref (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; camera->image_profile_switch = TRUE;
break; break;
case PROP_FLAGS: case PROP_FLAGS:
@ -2351,7 +2351,7 @@ gst_camera_bin_get_property (GObject * object, guint prop_id,
break; break;
case PROP_VIDEO_ENCODING_PROFILE: case PROP_VIDEO_ENCODING_PROFILE:
if (camera->video_profile) { if (camera->video_profile) {
g_value_set_boxed (value, camera->video_profile); g_value_set_object (value, camera->video_profile);
} }
break; break;
case PROP_VIDEO_FILTER: case PROP_VIDEO_FILTER:
@ -2389,7 +2389,7 @@ gst_camera_bin_get_property (GObject * object, guint prop_id,
break; break;
case PROP_IMAGE_ENCODING_PROFILE: case PROP_IMAGE_ENCODING_PROFILE:
if (camera->image_profile) { if (camera->image_profile) {
g_value_set_boxed (value, camera->image_profile); g_value_set_object (value, camera->image_profile);
} }
break; break;
case PROP_IDLE: case PROP_IDLE: