diff options
-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 |