mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
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:
parent
3ff7128293
commit
cad76384b3
1 changed files with 1 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue