mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
x264: Use __declspec(dllimport) with MinGW too
x264.h says this isn't needed with MinGW, but it looks like it is. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=779249
This commit is contained in:
parent
fb30e24499
commit
c6a0026137
1 changed files with 7 additions and 0 deletions
|
@ -30,6 +30,13 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* The x264.h header says this isn't needed with MinGW, but sometimes the
|
||||||
|
* 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)
|
||||||
|
# define X264_API_IMPORTS
|
||||||
|
#endif
|
||||||
#include <x264.h>
|
#include <x264.h>
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
Loading…
Reference in a new issue