plugins/screencast: Prefer allocating 3 buffers per stream by default

The current default 16 is way too many. For example, when screencasting
a 4K output, about 500MB will be wasted.
This commit is contained in:
Vlad Zahorodnii 2024-03-21 17:17:21 +02:00
parent 5777b3c257
commit 831ca28f93

View file

@ -117,7 +117,7 @@ void ScreenCastStream::newStreamParams()
struct spa_pod_frame f;
spa_pod_builder_push_object(&pod_builder, &f, SPA_TYPE_OBJECT_ParamBuffers, SPA_PARAM_Buffers);
spa_pod_builder_add(&pod_builder,
SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(16, 2, 16),
SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(3, 2, 4),
SPA_PARAM_BUFFERS_dataType, SPA_POD_CHOICE_FLAGS_Int(buffertypes), 0);
if (!m_dmabufParams) {
spa_pod_builder_add(&pod_builder,