mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
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:
parent
cf8f00d57a
commit
ac7fc0d357
1 changed files with 2 additions and 1 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue