mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
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:
parent
2b4a24132b
commit
358df1c569
@ -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;
|
||||
buffer_types = 1 << SPA_DATA_MemFd;
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user