mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +00:00
camerabin2: Make viewfinder's queue a thread limit only
Reduce the viewfinder queue limits to only allow it to store one buffer, preventing the queue from holding old buffers for too long. This also avoids showing slightly outdated frames on the viewfinder when the source has already produced new ones and improves the buffer recycling rate, important for sources that use bufferpools.
This commit is contained in:
parent
f3cb4439cf
commit
5ae630489c
1 changed files with 2 additions and 1 deletions
|
@ -1368,7 +1368,8 @@ gst_camera_bin_create_elements (GstCameraBin2 * camera)
|
|||
}
|
||||
|
||||
g_object_set (camera->viewfinderbin_queue, "leaky", 2, "silent", TRUE,
|
||||
NULL);
|
||||
"max-size-time", (guint64) 0, "max-size-bytes", (guint) 0,
|
||||
"max-size-buffers", (guint) 1, NULL);
|
||||
|
||||
gst_bin_add_many (GST_BIN_CAST (camera),
|
||||
gst_object_ref (camera->video_encodebin),
|
||||
|
|
Loading…
Reference in a new issue