summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorJordan Petridis <jordan@centricular.com>2020-08-03 18:35:56 +0300
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-08-04 11:37:52 +0000
commit26bbcae973d74a7e5275ca55e129dff66d338886 (patch)
tree742ba0217e3967c2f1dd1278d90f26973a9484ae /gst
parent5705301ed5e439bb33053e704f700a7a595b206c (diff)
downloadgstreamer-plugins-bad-26bbcae973d74a7e5275ca55e129dff66d338886.tar.gz
gstautoconvert.c: fix clang warnings
clang 10 is complaining about incompatible types due to the glib typesystem. ``` gst-plugins-bad/gst/autoconvert/b5c3019@@gstautoconvert@sha/gstautoconvert.c.o' -c ../subprojects/gst-plugins-bad/gst/autoconvert/gstautoconvert.c ../subprojects/gst-plugins-bad/gst/autoconvert/gstautoconvert.c:898:8: error: incompatible pointer types passing 'typeof ((((void *)0))) *' (aka 'void **') to parameter of type 'GList **' (aka 'struct _GList **') [-Werror,-Wincompatible-pointer-types] if (!g_atomic_pointer_compare_and_exchange (&autoconvert->factories, NULL, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/glib-2.0/glib/gatomic.h:192:44: note: expanded from macro 'g_atomic_pointer_compare_and_exchange' __atomic_compare_exchange_n ((atomic), &gapcae_oldval, (newval), FALSE, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST) ? TRUE : FALSE; \ ^~~~~~~~~~~~~~ 1 error generated. ``` Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1487>
Diffstat (limited to 'gst')
-rw-r--r--gst/autoconvert/gstautoconvert.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/autoconvert/gstautoconvert.c b/gst/autoconvert/gstautoconvert.c
index 7bf7cac3c..2c2433e03 100644
--- a/gst/autoconvert/gstautoconvert.c
+++ b/gst/autoconvert/gstautoconvert.c
@@ -248,7 +248,7 @@ gst_auto_convert_set_property (GObject * object,
GList *factories = g_value_get_pointer (value);
factories = g_list_copy (factories);
if (g_atomic_pointer_compare_and_exchange (&autoconvert->factories,
- NULL, factories))
+ (GList *) NULL, factories))
g_list_foreach (factories, (GFunc) g_object_ref, NULL);
else
g_list_free (factories);
@@ -895,8 +895,8 @@ gst_auto_convert_load_factories (GstAutoConvert * autoconvert)
g_assert (all_factories);
- if (!g_atomic_pointer_compare_and_exchange (&autoconvert->factories, NULL,
- all_factories)) {
+ if (!g_atomic_pointer_compare_and_exchange (&autoconvert->factories,
+ (GList *) NULL, all_factories)) {
gst_plugin_feature_list_free (all_factories);
}