gstx264enc: fix for static builds on windows

Fixes #3911

Co-authored-by: L. E. Segovia <amy@centricular.com>
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7672>
This commit is contained in:
Eli Mallon 2024-10-16 08:22:53 -03:00 committed by GStreamer Marge Bot
parent f6e8b88128
commit ada194b725

View file

@ -35,7 +35,7 @@
* compiler is unable to correctly do the pointer indirection for us, which * 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 * 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 */ * 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 # define X264_API_IMPORTS
#endif #endif
#include <x264.h> #include <x264.h>