summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Petridis <jordan@centricular.com>2020-08-03 19:34:30 +0300
committerJordan Petridis <jordan@centricular.com>2020-08-03 22:29:49 +0300
commite3e946c0b0e50c912266939f5a4854298c8877b7 (patch)
tree2bc13eaaef67139891dc9a650800f4aaa359184c
parent3254b992aae9b91cabe7d9860b83b343d7896c83 (diff)
rtsp-thread-pool.c: fix clang 10 warning
clang 10 is complaining about incompatible types due to the glib typesystem. ``` ../subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-thread-pool.c:534:10: error: incompatible pointer types passing 'typeof ((((void *)0))) *' (aka 'void **') to parameter of type 'GThreadPool **' (aka 'struct _GThreadPool **') [-Werror,-Wincompatible-pointer-types] ``` Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/145>
-rw-r--r--gst/rtsp-server/rtsp-thread-pool.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/rtsp-server/rtsp-thread-pool.c b/gst/rtsp-server/rtsp-thread-pool.c
index 7bfee10..2921464 100644
--- a/gst/rtsp-server/rtsp-thread-pool.c
+++ b/gst/rtsp-server/rtsp-thread-pool.c
@@ -531,7 +531,8 @@ gst_rtsp_thread_pool_get_thread (GstRTSPThreadPool * pool,
if (G_UNLIKELY (!g_atomic_pointer_get (&klass->pool))) {
GThreadPool *t_pool;
t_pool = g_thread_pool_new ((GFunc) do_loop, klass, -1, FALSE, NULL);
- if (!g_atomic_pointer_compare_and_exchange (&klass->pool, (GThreadPool *) NULL, t_pool))
+ if (!g_atomic_pointer_compare_and_exchange (&klass->pool,
+ (GThreadPool *) NULL, t_pool))
g_thread_pool_free (t_pool, FALSE, TRUE);
}