soup-stub: Gate G_URI_FLAGS_SCHEME_NORMALIZE behind glib version check
authorPhilippe Normand <philn@igalia.com>
Wed, 13 Oct 2021 13:42:15 +0000 (14:42 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 13 Oct 2021 19:24:02 +0000 (19:24 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1138>

subprojects/gst-plugins-good/ext/soup/stub/soup.h

index 4de65275b8a5c8dc007aa2009fc0274b21372259..56ddd6acdfa711c695f61c634654356738914a64 100644 (file)
@@ -162,10 +162,16 @@ typedef void (*SoupLoggerPrinter)(SoupLogger *logger,
                                                    const char *data,
                                                    gpointer user_data);
 
+#if GLIB_CHECK_VERSION(2, 68, 0)
 #define SOUP_HTTP_URI_FLAGS                                                    \
   (G_URI_FLAGS_HAS_PASSWORD | G_URI_FLAGS_ENCODED_PATH |                       \
    G_URI_FLAGS_ENCODED_QUERY | G_URI_FLAGS_ENCODED_FRAGMENT |                  \
    G_URI_FLAGS_SCHEME_NORMALIZE)
+#else
+#define SOUP_HTTP_URI_FLAGS                                                    \
+  (G_URI_FLAGS_HAS_PASSWORD | G_URI_FLAGS_ENCODED_PATH |                       \
+   G_URI_FLAGS_ENCODED_QUERY | G_URI_FLAGS_ENCODED_FRAGMENT)
+#endif
 
 typedef void (*SoupMessageHeadersForeachFunc)(const char *name,
                                               const char *value,