diff --git a/ext/wpe/wpe-extension/gstwpeaudiosink.c b/ext/wpe/wpe-extension/gstwpeaudiosink.c index 28ded42607..ae43f4860c 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