camerabin2: Set queues to silent

Optimize a little by setting queues to silent
This commit is contained in:
Thiago Santos 2011-03-11 18:23:22 -03:00
parent b2f39d1844
commit ba878f7427

View file

@ -872,8 +872,11 @@ 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);
g_object_set (camera->viewfinderbin_queue, "leaky", 2, "silent", TRUE,
NULL);
g_object_set (camera->imagebin_queue, "max-size-time", (guint64) 0,
"silent", TRUE, NULL);
g_object_set (camera->videobin_queue, "silent", TRUE, NULL);
gst_bin_add_many (GST_BIN_CAST (camera),
gst_object_ref (camera->encodebin),