screen-cast/src: Always allow MemFd buffer types to be selected

Just because the PipeWire client can handle DMA buffers, doesnt mean we
should not advertise support for MemFd.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2383>
This commit is contained in:
Jonas Ådahl 2022-04-22 11:31:48 +02:00 committed by Marge Bot
parent 2b4a24132b
commit 358df1c569

View File

@ -789,10 +789,9 @@ on_stream_param_changed (void *data,
pod_builder = SPA_POD_BUILDER_INIT (params_buffer, sizeof (params_buffer));
if (!spa_pod_find_prop (format, NULL, SPA_FORMAT_VIDEO_modifier))
buffer_types = 1 << SPA_DATA_MemFd;
else
buffer_types = 1 << SPA_DATA_DmaBuf;
if (spa_pod_find_prop (format, NULL, SPA_FORMAT_VIDEO_modifier))
buffer_types |= 1 << SPA_DATA_DmaBuf;
params[0] = spa_pod_builder_add_object (
&pod_builder,