diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2020-05-01 14:43:55 +0100 |
---|---|---|
committer | GStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org> | 2020-09-25 04:19:39 +0000 |
commit | 5910bd554797eed4783d7d6eb955c45dd846e09b (patch) | |
tree | 20cc2814677344988c5a7907c14be34db6848b8d | |
parent | e6225482f65a12d1f2355f893b8527f24d393c23 (diff) | |
download | gstreamer-plugins-bad-5910bd554797eed4783d7d6eb955c45dd846e09b.tar.gz |
autoconvert: fix compiler warnings with g_atomic on recent GLib versions
The volatile is not needed here and causes compiler warnings
with newer GLib versions.
gstautoconvert.c: In function ‘gst_auto_convert_dispose’ (and elsewhere):
glib/gatomic.h:108:3: warning: initialization discards ‘volatile’ qualifier from pointer target type [-Wdiscarded-qualifiers]
gstautoconvert.c:224:24: note: in expansion of macro ‘g_atomic_pointer_get’
224 | GList *factories = g_atomic_pointer_get (&autoconvert->factories);
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1600>
-rw-r--r-- | gst/autoconvert/gstautoconvert.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/autoconvert/gstautoconvert.h b/gst/autoconvert/gstautoconvert.h index ae40e63ee..eaa4f02c9 100644 --- a/gst/autoconvert/gstautoconvert.h +++ b/gst/autoconvert/gstautoconvert.h @@ -41,7 +41,7 @@ struct _GstAutoConvert /*< private >*/ GstBin bin; /* we extend GstBin */ - volatile GList *factories; + GList *factories; GstPad *sinkpad; GstPad *srcpad; |