validate: fix build on macOS

_Q_VALIDATE_MONITOR was defined twice because it wasn't declared
as extern in the header, so it would be defined as variable in all
included files. This doesn't seem to cause problems on Linux, but
seems to cause build failures on macOS.

Fixes #42
This commit is contained in:
Tim-Philipp Müller 2019-05-04 19:54:16 +01:00
parent a1881d4dc2
commit 751a6d756c
2 changed files with 3 additions and 1 deletions

View file

@ -33,7 +33,7 @@ extern G_GNUC_INTERNAL GstDebugCategory *gstvalidate_debug;
extern G_GNUC_INTERNAL GRegex *newline_regex;
extern G_GNUC_INTERNAL GstClockTime _priv_start_time;
GQuark _Q_VALIDATE_MONITOR;
extern G_GNUC_INTERNAL GQuark _Q_VALIDATE_MONITOR;
/* If an action type is 1 (TRUE) we also consider it is a config to keep backward compatibility */
#define IS_CONFIG_ACTION_TYPE(type) (((type) & GST_VALIDATE_ACTION_TYPE_CONFIG) || ((type) == TRUE))

View file

@ -56,6 +56,8 @@ static GList *core_config = NULL;
static gboolean validate_initialized = FALSE;
GstClockTime _priv_start_time;
GQuark _Q_VALIDATE_MONITOR;
#ifdef G_OS_WIN32
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved);
BOOL WINAPI