diff options
author | Thibault Saunier <tsaunier@igalia.com> | 2021-05-21 10:18:21 -0400 |
---|---|---|
committer | Thibault Saunier <tsaunier@igalia.com> | 2021-06-08 03:15:05 +0000 |
commit | c38e0cfdb0b4ce4c719e42f956ace47455618275 (patch) | |
tree | 6662cc2f1fbb9303dc5609ec4919016a3957e199 /ext | |
parent | d93131bfeeb231a15c8faa3e0c8d0ec37688d1c1 (diff) | |
download | gstreamer-plugins-bad-c38e0cfdb0b4ce4c719e42f956ace47455618275.tar.gz |
wpe: Fix check on whether MEMFD_CREATE is available
The ordering of the ifdef was wrong
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/2273>
Diffstat (limited to 'ext')
-rw-r--r-- | ext/wpe/wpe-extension/gstwpeaudiosink.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/wpe/wpe-extension/gstwpeaudiosink.c b/ext/wpe/wpe-extension/gstwpeaudiosink.c index 28ded4260..ae43f4860 100644 --- a/ext/wpe/wpe-extension/gstwpeaudiosink.c +++ b/ext/wpe/wpe-extension/gstwpeaudiosink.c @@ -88,10 +88,11 @@ render (GstBaseSink * sink, GstBuffer * buf) return GST_FLOW_ERROR; } -#ifdef HAVE_MEMFD_CREATE + if (!self->fdlist) { gint fds[1] = { -1 }; +#ifdef HAVE_MEMFD_CREATE fds[0] = memfd_create ("gstwpe-shm", MFD_CLOEXEC); #endif |