mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
check/soup: Temporarily disable G_ENABLE_DIAGNOSTIC
The SOUP_SERVER_PORT property has been deprecated in recent libsoup versions.
This commit is contained in:
parent
9e47ea2dc8
commit
5765db50a1
1 changed files with 5 additions and 0 deletions
|
@ -602,7 +602,12 @@ run_server (guint * http_port, guint * https_port)
|
|||
|
||||
*http_port = *https_port = 0;
|
||||
|
||||
/* The G_ENABLE_DIAGNOSTIC is temporarily overriden to avoid
|
||||
* property deprecation warnings (for the SOUP_SERVER_PORT
|
||||
* property) */
|
||||
g_setenv ("G_ENABLE_DIAGNOSTIC", "0", TRUE);
|
||||
server = soup_server_new (SOUP_SERVER_PORT, port, NULL);
|
||||
g_setenv ("G_ENABLE_DIAGNOSTIC", "1", TRUE);
|
||||
if (!server) {
|
||||
GST_DEBUG ("Unable to bind to server port %u", port);
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue