summaryrefslogtreecommitdiff
path: root/tests/examples/camerabin/gst-camera-perf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/examples/camerabin/gst-camera-perf.c')
-rw-r--r--tests/examples/camerabin/gst-camera-perf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/examples/camerabin/gst-camera-perf.c b/tests/examples/camerabin/gst-camera-perf.c
index c5554a0e3..0c56ee6e5 100644
--- a/tests/examples/camerabin/gst-camera-perf.c
+++ b/tests/examples/camerabin/gst-camera-perf.c
@@ -979,8 +979,10 @@ main (int argc, char *argv[])
GOptionContext *ctx;
GError *err = NULL;
+#if !GLIB_CHECK_VERSION (2, 31, 0)
if (!g_thread_supported ())
g_thread_init (NULL);
+#endif
ctx = g_option_context_new (NULL);
g_option_context_add_main_entries (ctx, options, NULL);