[mutter] screen-cast/src: Always allow MemFd buffer types to be selected
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] screen-cast/src: Always allow MemFd buffer types to be selected
- Date: Fri, 22 Apr 2022 12:30:01 +0000 (UTC)
commit 358df1c569888b2990a31f2aa32bdb3db27ed616
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Apr 22 11:31:48 2022 +0200
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>
src/backends/meta-screen-cast-stream-src.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/backends/meta-screen-cast-stream-src.c b/src/backends/meta-screen-cast-stream-src.c
index 539cd998e3..1e009070ca 100644
--- a/src/backends/meta-screen-cast-stream-src.c
+++ b/src/backends/meta-screen-cast-stream-src.c
@@ -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,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]