From ada194b7252fd31275a89e61655c4800d0043636 Mon Sep 17 00:00:00 2001 From: Eli Mallon Date: Wed, 16 Oct 2024 08:22:53 -0300 Subject: [PATCH] gstx264enc: fix for static builds on windows Fixes #3911 Co-authored-by: L. E. Segovia Part-of: --- subprojects/gst-plugins-ugly/ext/x264/gstx264enc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-ugly/ext/x264/gstx264enc.h b/subprojects/gst-plugins-ugly/ext/x264/gstx264enc.h index 6cbfc5c3d0..7b1911a55b 100644 --- a/subprojects/gst-plugins-ugly/ext/x264/gstx264enc.h +++ b/subprojects/gst-plugins-ugly/ext/x264/gstx264enc.h @@ -35,7 +35,7 @@ * compiler is unable to correctly do the pointer indirection for us, which * leads to a segfault when you try to dereference any const values provided * by x264.dll. See: https://bugzilla.gnome.org/show_bug.cgi?id=779249 */ -#if defined(_WIN32) && !defined(X264_API_IMPORTS) +#if defined(_WIN32) && !defined(X264_API_IMPORTS) && !defined(GST_STATIC_COMPILATION) # define X264_API_IMPORTS #endif #include