Bug 1731428 - Do not advertise DmaBuf support for Pipewire screen sharing, r=stransky

Right now we only support simple mem-copy from a given DmaBuf instead
of using the driver to get the data. This can fail in many ways, e.g.
if buffer modifiers are used.
Until we support proper handling of DmaBuf, stop advertising it to
Pipewire.

Differential Revision: https://phabricator.services.mozilla.com/D126824
This commit is contained in:
Robert Mader 2021-09-30 18:28:58 +00:00
Родитель 9a458823b2
Коммит e566c94ff9
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -128,8 +128,7 @@ void BaseCapturerPipeWire::OnStreamParamChanged(void *data, uint32_t id,
params[0] = reinterpret_cast<spa_pod *>(spa_pod_builder_add_object(&builder,
SPA_TYPE_OBJECT_ParamBuffers, SPA_PARAM_Buffers,
SPA_PARAM_BUFFERS_dataType, SPA_POD_CHOICE_FLAGS_Int((1<<SPA_DATA_MemPtr) |
(1<<SPA_DATA_MemFd) |
(1<<SPA_DATA_DmaBuf)),
(1<<SPA_DATA_MemFd)),
SPA_PARAM_BUFFERS_size, SPA_POD_Int(size),
SPA_PARAM_BUFFERS_stride, SPA_POD_Int(stride),
SPA_PARAM_BUFFERS_buffers, SPA_POD_CHOICE_RANGE_Int(8, 1, 32)));