mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-11-25 13:01:07 +00:00
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
This commit is contained in:
parent
a500166082
commit
359c07203e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue