From d3a50586115e02bc829520833f6c6e84be2c8aa8 Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Tue, 15 Feb 2011 14:59:32 -0300 Subject: [PATCH] camerabin2: Set some queue's properties Sets viewfinder queue to leaky and tell image branch queue to don't care about durations --- gst/camerabin2/gstcamerabin2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/camerabin2/gstcamerabin2.c b/gst/camerabin2/gstcamerabin2.c index f743a7da3f..31909656fe 100644 --- a/gst/camerabin2/gstcamerabin2.c +++ b/gst/camerabin2/gstcamerabin2.c @@ -629,6 +629,9 @@ gst_camera_bin_create_elements (GstCameraBin * camera) camera->viewfinderbin_queue = gst_element_factory_make ("queue", "viewfinderbin-queue"); + g_object_set (camera->viewfinderbin_queue, "leaky", 2, NULL); + g_object_set (camera->imagebin_queue, "max-size-time", (guint64) 0, NULL); + gst_bin_add_many (GST_BIN_CAST (camera), gst_object_ref (camera->encodebin), gst_object_ref (camera->videosink),