camerabin: limit the size of video bin queue leading to view finder

We don't want to show old buffers in view finder.
This commit is contained in:
Lasse Laukkanen 2009-04-23 18:15:43 +03:00 committed by Stefan Kost
parent 3ff7128293
commit cad76384b3

View file

@ -641,7 +641,7 @@ gst_camerabin_video_create_elements (GstCameraBinVideo * vid)
}
/* Set queue leaky, we don't want to block video encoder feed, but
prefer leaking view finder buffers instead. */
g_object_set (G_OBJECT (queue), "leaky", 2, NULL);
g_object_set (G_OBJECT (queue), "leaky", 2, "max-size-buffers", 1, NULL);
/* Set up src ghost pad for video bin */
vid_srcpad = gst_element_get_static_pad (queue, "src");