From ac7fc0d357f45a3be22f3e7606f271f494bce7f9 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Wed, 31 Aug 2011 15:33:10 -0300 Subject: [PATCH] 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. --- gst/camerabin2/gstcamerabin2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c index 8343d88505..e7bc09c851 100644 --- a/gst/camerabin2/gstcamerabin2.c +++ b/gst/camerabin2/gstcamerabin2.c @@ -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->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) { GST_DEBUG_OBJECT (camera, "Switching encodebin's profile");