diff options
author | Matthew Waters <matthew@centricular.com> | 2021-03-19 09:24:25 +0300 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2021-03-19 09:24:25 +0300 |
commit | 359c07203e277e7b5e8f5c3f97c73ddbf7729b7a (patch) | |
tree | 17ff08a7dbfac00c32ee1e87cdfaec4c85b070a5 /utils | |
parent | a50016608230bf1928db5cb0763ab7bef60222d8 (diff) |
gst: don't use volatile to mean atomic
volatile is not sufficient to provide atomic guarantees and real atomics
should be used instead. GCC 11 has started warning about using volatile
with atomic operations.
https://gitlab.gnome.org/GNOME/glib/-/merge_requests/1719
Discovered in https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/issues/868
Diffstat (limited to 'utils')
-rw-r--r-- | utils/fallbackswitch/src/base/gstaggregator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/fallbackswitch/src/base/gstaggregator.c b/utils/fallbackswitch/src/base/gstaggregator.c index aaf61226a..436ed40fa 100644 --- a/utils/fallbackswitch/src/base/gstaggregator.c +++ b/utils/fallbackswitch/src/base/gstaggregator.c @@ -2700,7 +2700,7 @@ gst_aggregator_init (GstAggregator * self, GstAggregatorClass * klass) GType gst_aggregator_get_type (void) { - static volatile gsize type = 0; + static gsize type = 0; if (g_once_init_enter (&type)) { GType _type; |