mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
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:
parent
d93131bfee
commit
c38e0cfdb0
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue