summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Petridis <jordan@centricular.com>2020-08-04 21:15:01 +0300
committerJordan Petridis <jordan@centricular.com>2020-08-04 21:15:01 +0300
commit89580cc2308cb8bd9d3cc6c673a2e0064b09e064 (patch)
tree6920858a415ad06e04a484ddbbf1436f013867ec
parent887ba40e658cf8a02ce23af6e3f359eca5cda518 (diff)
gstvaapiminiobject.c: fix clang 10 warnings
the typesystem checks in g_atomic_pointer_compare_and_exchange seem to trigger some false positives with clang 10 similar to gstreamer!584 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-vaapi/-/merge_requests/377>
-rw-r--r--gst-libs/gst/vaapi/gstvaapiminiobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapiminiobject.c b/gst-libs/gst/vaapi/gstvaapiminiobject.c
index 52052ad3..7b189832 100644
--- a/gst-libs/gst/vaapi/gstvaapiminiobject.c
+++ b/gst-libs/gst/vaapi/gstvaapiminiobject.c
@@ -193,7 +193,7 @@ gst_vaapi_mini_object_replace (GstVaapiMiniObject ** old_object_ptr,
gst_vaapi_mini_object_ref_internal (new_object);
while (!g_atomic_pointer_compare_and_exchange ((gpointer *) old_object_ptr,
- old_object, new_object))
+ (gpointer) old_object, new_object))
old_object = g_atomic_pointer_get ((gpointer *) old_object_ptr);
if (old_object)