tests: uri: fix build without -DGST_DISABLE_DEPRECATED
authorTim-Philipp Müller <tim@centricular.com>
Thu, 15 Feb 2018 12:03:20 +0000 (12:03 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 15 Feb 2018 12:11:55 +0000 (12:11 +0000)
Must undefine it before including gst headers, since the test
tests deprecated API.

tests/check/gst/gsturi.c

index 3f753f6..ee623db 100644 (file)
 #include "config.h"
 #endif
 
+#ifndef GST_REMOVE_DEPRECATED
+#undef GST_DISABLE_DEPRECATED
+#endif
+
 #include <gst/check/gstcheck.h>
 
 GST_START_TEST (test_protocol_case)