gst: don't use volatile to mean atomic
authorMatthew Waters <matthew@centricular.com>
Fri, 19 Mar 2021 04:16:06 +0000 (15:16 +1100)
committerMatthew Waters <matthew@centricular.com>
Fri, 19 Mar 2021 04:17:05 +0000 (15:17 +1100)
commit6399179d7a2e51e5d9b159986104d733464180f9
tree45790d98553700e3e90e2e5d79ba56aa94079189
parent3aba7d1e625554b2407bc77b3d09b4928b937d5f
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

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-ugly/-/merge_requests/78>
ext/x264/gstencoderbitrateprofilemanager.c