camerabin2: Use explicit boolean literals to make gobject happy

gobject boolean properties are strict and only accept 1 or 0, otherwise
they throw an assertion.
This commit is contained in:
Thiago Santos 2011-08-31 15:33:10 -03:00
parent cf8f00d57a
commit ac7fc0d357

View file

@ -1424,7 +1424,8 @@ gst_camera_bin_create_elements (GstCameraBin2 * camera)
g_object_set (camera->video_encodebin, "flags", encbin_flags, NULL); g_object_set (camera->video_encodebin, "flags", encbin_flags, NULL);
g_object_set (camera->viewfinderbin, "disable-converters", g_object_set (camera->viewfinderbin, "disable-converters",
camera->flags & GST_CAM_FLAG_NO_VIEWFINDER_CONVERSION, NULL); camera->flags & GST_CAM_FLAG_NO_VIEWFINDER_CONVERSION ? TRUE : FALSE,
NULL);
if (camera->video_profile_switch) { if (camera->video_profile_switch) {
GST_DEBUG_OBJECT (camera, "Switching encodebin's profile"); GST_DEBUG_OBJECT (camera, "Switching encodebin's profile");