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>
This commit is contained in:
Thibault Saunier 2021-05-21 10:18:21 -04:00
parent d93131bfee
commit c38e0cfdb0

View file

@ -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